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