More lint fixes

This commit is contained in:
rospogrigio
2020-09-28 15:21:35 +02:00
committed by rospogrigio
parent 56c266d344
commit e5ce098016
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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