Skip to content

Commit a091fc1

Browse files
Merge pull request #57 from TomTorger/nuc_connect_fix
added escape clause to while loop to eliminate retries after successfull connection: Closes #50 in my case
2 parents 965c27d + a490a8e commit a091fc1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

custom_components/airthings_wave/airthings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def connect(self, mac, retries=10):
178178
tries += 1
179179
try:
180180
self._dev = btle.Peripheral(mac.lower())
181+
break
181182
except Exception as e:
182183
print(e)
183184
if tries == retries:

0 commit comments

Comments
 (0)