Add port devices and enable toggles

This commit is contained in:
2026-02-13 21:13:54 +01:00
parent 6824134c91
commit 0af4fc8375
47 changed files with 646 additions and 245 deletions

View File

@@ -16,6 +16,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
raise
entry.runtime_data = manager
entry.async_on_unload(entry.add_update_listener(_update_listener))
await hass.config_entries.async_forward_entry_setups(entry, ["switch"])
return True
@@ -24,6 +25,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
if manager is None:
return True
await manager.async_unload()
await hass.config_entries.async_unload_platforms(entry, ["switch"])
return True