More lint fixes
This commit is contained in:
@@ -89,7 +89,7 @@ class TuyaDevice:
|
||||
raise ConnectionError("Failed to update status .")
|
||||
|
||||
def set_dps(self, state, dps_index):
|
||||
"""Changes the value of a DP of the Tuya device, and update the cached status."""
|
||||
"""Change 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)
|
||||
|
@@ -254,7 +254,7 @@ class TuyaInterface:
|
||||
return self.exchange(SET, {str(dps_index): value})
|
||||
|
||||
def _decode_received_data(self, data, is_status):
|
||||
"""decode the response data received from the device"""
|
||||
"""Decode the response data received from the device."""
|
||||
# is_status may be True (result of a status request)
|
||||
# or False (result of a set_dps request)
|
||||
result = data[20:-8] # hard coded offsets
|
||||
|
Reference in New Issue
Block a user