Skip to content

Commit

Permalink
reconnect task called from entry not hass
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou authored Dec 21, 2023
1 parent b109b54 commit 3e22a40
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 @@ -359,7 +359,7 @@ async def _async_reconnect(now):
"""Try connecting to devices not already connected to."""
for dev in hass_localtuya.tuya_devices.values():
if not dev.connected:
hass.async_create_task(dev.async_connect())
entry.async_create_task(dev.async_connect())

# Add unsub callbeack in unsub_listeners object.
hass_localtuya.unsub_listeners.append(
Expand Down

0 comments on commit 3e22a40

Please # to comment.