Skip to content

Commit

Permalink
Fixed: Retry connecting to device
Browse files Browse the repository at this point in the history
  • Loading branch information
B1ob committed Jul 13, 2022
1 parent b997efb commit 304cfee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/airthings_wave/airthings.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ async def connect(self, mac, retries=10):
ret = await self._dev.connect()
if ret:
_LOGGER.debug("Connected to {}".format(mac))
break
break
except Exception as e:
if tries == retries:
_LOGGER.info("Not able to connect to {}".format(mac))
Expand Down

0 comments on commit 304cfee

Please sign in to comment.