Rename set_dps to set_dp in pytuya
This commit is contained in:
committed by
rospogrigio
parent
81c04bfc4e
commit
44db913514
@@ -62,7 +62,7 @@ class LocaltuyaSensor(LocalTuyaEntity):
|
||||
|
||||
def status_updated(self):
|
||||
"""Device status was updated."""
|
||||
state = self.dps(self._dps_id)
|
||||
state = self.dps(self._dp_id)
|
||||
scale_factor = self._config.get(CONF_SCALING)
|
||||
if scale_factor is not None:
|
||||
state = round(state * scale_factor, DEFAULT_PRECISION)
|
||||
|
Reference in New Issue
Block a user