Skip to content

Commit

Permalink
Fix disabled devices may break re-connect function #267
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou committed Jun 8, 2024
1 parent b0a806b commit 5a3fb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/localtuya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ async def _async_reconnect(now):
for host, dev in hass_localtuya.devices.items():
dev_id = dev._device_config.id
if check_if_device_disabled(hass, entry, dev_id):
return
continue
if not dev.connected:
asyncio.create_task(dev.async_connect())

Expand Down

0 comments on commit 5a3fb47

Please sign in to comment.