Ignore status updates without datapoints
This commit is contained in:
committed by
rospogrigio
parent
b2c4e93a47
commit
5cd76f87ea
@@ -163,6 +163,7 @@ class TuyaDevice(pytuya.TuyaListener):
|
|||||||
@callback
|
@callback
|
||||||
def status_updated(self, status):
|
def status_updated(self, status):
|
||||||
"""Device updated status."""
|
"""Device updated status."""
|
||||||
|
if "dps" in status:
|
||||||
self._status.update(status["dps"])
|
self._status.update(status["dps"])
|
||||||
|
|
||||||
signal = f"localtuya_{self._config_entry[CONF_DEVICE_ID]}"
|
signal = f"localtuya_{self._config_entry[CONF_DEVICE_ID]}"
|
||||||
|
Reference in New Issue
Block a user