mirror of
https://github.com/bahmcloud/HA-KNX-Bridge.git
synced 2026-04-07 01:01:15 +00:00
Add port devices and enable toggles
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user