We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28d67f9 commit 51b43c2Copy full SHA for 51b43c2
switchbot/__init__.py
@@ -31,7 +31,7 @@ def _sendpacket(self, key, retry=2) -> bool:
31
_LOGGER.error("Cannot connect to switchbot.", exc_info=True)
32
if retry < 1:
33
return False
34
- self._sendpacket(key, retry-1)
+ return self._sendpacket(key, retry-1)
35
return True
36
37
def turn_on(self) -> None:
0 commit comments