Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/skykettle-ha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-02-20 15:41:28 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-02-20 15:41:28 +0300
commit9834fbf5fc4b377710eee61897559c8137282b57 (patch)
tree65a5c7ff555d85520b0ad00028ffb4075c2a272b
parenta56eb44dc7d84d5638ad8b3a66a4edd8f657bdd4 (diff)
Fixed auth validation, so more kettles are supported nowv1.3
-rw-r--r--custom_components/skykettle/skykettle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom_components/skykettle/skykettle.py b/custom_components/skykettle/skykettle.py
index 749a5d6..2dbcaf6 100644
--- a/custom_components/skykettle/skykettle.py
+++ b/custom_components/skykettle/skykettle.py
@@ -81,7 +81,7 @@ class SkyKettle():
async def auth(self, key):
r = await self.command(SkyKettle.COMMAND_AUTH, key)
- ok = r[0] == 1
+ ok = r[0] != 0
_LOGGER.debug(f"Auth: ok={ok}")
return ok