Skip to content

Commit

Permalink
Continue startup when there are kasa errors. #980
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Feb 11, 2025
1 parent 431de09 commit 361cbc7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hardware/relay/kasa_relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ async def __scan():
devices = await Discover.discover()
for ip_address in devices:
device = devices[ip_address]
await device.update()

try:
await device.update()
except Exception as ex:
logger.warning(ex)
continue

if device.is_strip:
for counter in range(1, len(device.children) + 1):
found_devices.append(
Expand Down

0 comments on commit 361cbc7

Please sign in to comment.