Skip to content

Commit fd827f2

Browse files
explicit return
1 parent 8c3c423 commit fd827f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

switchbot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _sendcommand(self, key, retry) -> bool:
7474
finally:
7575
self._disconnect()
7676
if send_success:
77-
return send_success
77+
return True
7878
if retry < 1:
7979
_LOGGER.error("Switchbot communication failed. Stopping trying.", exc_info=True)
8080
return False

0 commit comments

Comments
 (0)