From deeaf0e9eb8ec88e0d63f69ff310743438c73846 Mon Sep 17 00:00:00 2001 From: rospogrigio Date: Mon, 28 Sep 2020 15:36:04 +0200 Subject: [PATCH] More lint fixes --- custom_components/localtuya/common.py | 4 ++-- custom_components/localtuya/pytuya/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/localtuya/common.py b/custom_components/localtuya/common.py index 9c930c8..7f99dc4 100644 --- a/custom_components/localtuya/common.py +++ b/custom_components/localtuya/common.py @@ -91,7 +91,7 @@ class TuyaDevice: def set_dps(self, state, dps_index): """Change 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 + # 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 @@ -99,7 +99,7 @@ class TuyaDevice: 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 + # NOW WE SHOULD TRIGGER status_updated FOR ALL ENTITIES # INVOLVED IN result["dps"] : # for dp in result["dps"]: # have status_updated() called.... diff --git a/custom_components/localtuya/pytuya/__init__.py b/custom_components/localtuya/pytuya/__init__.py index 5fefec3..de7f81a 100644 --- a/custom_components/localtuya/pytuya/__init__.py +++ b/custom_components/localtuya/pytuya/__init__.py @@ -255,7 +255,7 @@ class TuyaInterface: def _decode_received_data(self, data, is_status): """Decode the response data received from the device.""" - # is_status may be True (result of a status request) + # 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 if self.dev_type != "type_0a":