From 9834fbf5fc4b377710eee61897559c8137282b57 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Sun, 20 Feb 2022 15:41:28 +0300 Subject: [PATCH] Fixed auth validation, so more kettles are supported now --- custom_components/skykettle/skykettle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ async def command(self, command, params=[]): 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