Fixing lint output
This commit is contained in:
@@ -91,15 +91,17 @@ class TuyaDevice:
|
||||
def set_dps(self, state, dps_index):
|
||||
"""Changes the value of a DP of the Tuya device, and update the cached status."""
|
||||
# _LOGGER.info("running def set_dps from TuyaDevice")
|
||||
# No need to clear the cache here: let's just update the status of the changed dps as returned by the interface (see 5 lines below)
|
||||
# self._cached_status = ""
|
||||
# self._cached_status_time = 0
|
||||
# No need to clear the cache here: let's just update the status of the
|
||||
# changed dps as returned by the interface (see 5 lines below)
|
||||
# self._cached_status = ""
|
||||
# self._cached_status_time = 0
|
||||
for i in range(5):
|
||||
try:
|
||||
result = self._interface.set_dps(state, dps_index)
|
||||
self._cached_status["dps"].update(result["dps"])
|
||||
# NOW WE SHOULD TRIGGER status_updated FOR ALL ENTITIES INVOLVED IN result["dps"] :
|
||||
#for dp in result["dps"]:
|
||||
# NOW WE SHOULD TRIGGER status_updated FOR ALL ENTITIES
|
||||
# INVOLVED IN result["dps"] :
|
||||
# for dp in result["dps"]:
|
||||
# have status_updated() called....
|
||||
return
|
||||
except Exception:
|
||||
|
Reference in New Issue
Block a user