Skip to content

Commit 86e6af4

Browse files
spelling
1 parent 1c42203 commit 86e6af4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

switchbot/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def _connect(self) -> bool:
4040

4141
def _sendpacket(self, key, retry=2) -> bool:
4242
if self._device is None and not self._connect():
43-
_LOGGER.error("Cannot connect to switchbot.")
43+
_LOGGER.error("Can not connect to switchbot.")
4444
return False
4545

4646
try:
@@ -51,9 +51,9 @@ def _sendpacket(self, key, retry=2) -> bool:
5151
hand.write(binascii.a2b_hex(key))
5252
except bluepy.btle.BTLEException:
5353
if retry < 1 or not self._connect():
54-
_LOGGER.error("Cannot connect to switchbot.", exc_info=True)
54+
_LOGGER.error("Can not connect to switchbot.", exc_info=True)
5555
return False
56-
_LOGGER.warning("Cannot connect to switchbot. Retrying")
56+
_LOGGER.warning("Can not connect to switchbot. Retrying")
5757
return self._sendpacket(key, retry-1)
5858
return True
5959

0 commit comments

Comments
 (0)