Skip to content

Commit

Permalink
Small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco committed Nov 17, 2024
1 parent 6c519e8 commit 689b1b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/lanbon_switch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ async def discover_device(msg):

# Forward setup only if not already done
if not hass.data[DOMAIN]["platform_switch_setup_done"]:
hass.data[DOMAIN]["platform_switch_setup_done"] = True
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, "switch")
)
hass.data[DOMAIN]["platform_switch_setup_done"] = True

# Request device states on startup
async def sync_device_states(event):
Expand Down

0 comments on commit 689b1b1

Please sign in to comment.