From e5ce09801650a6285ff8281c84f3ca5ffec9ce69 Mon Sep 17 00:00:00 2001 From: rospogrigio Date: Mon, 28 Sep 2020 15:21:35 +0200 Subject: [PATCH] More lint fixes --- custom_components/localtuya/common.py | 2 +- custom_components/localtuya/pytuya/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/localtuya/common.py b/custom_components/localtuya/common.py index 8c57ea8..088ae55 100644 --- a/custom_components/localtuya/common.py +++ b/custom_components/localtuya/common.py @@ -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) diff --git a/custom_components/localtuya/pytuya/__init__.py b/custom_components/localtuya/pytuya/__init__.py index d3fbc5c..5fefec3 100644 --- a/custom_components/localtuya/pytuya/__init__.py +++ b/custom_components/localtuya/pytuya/__init__.py @@ -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