Skip to content

Commit f7265c8

Browse files
Tommatheussenfrenck
authored andcommitted
Fix entities not being created when adding subentries for Satel Integra (home-assistant#153139)
1 parent 8466dbf commit f7265c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

homeassistant/components/satel_integra/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: SatelConfigEntry) -> boo
197197
def _close(*_):
198198
controller.close()
199199

200+
entry.async_on_unload(entry.add_update_listener(update_listener))
200201
entry.async_on_unload(hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, _close))
201202

202203
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
@@ -239,3 +240,8 @@ async def async_unload_entry(hass: HomeAssistant, entry: SatelConfigEntry) -> bo
239240
controller.close()
240241

241242
return unload_ok
243+
244+
245+
async def update_listener(hass: HomeAssistant, entry: SatelConfigEntry) -> None:
246+
"""Handle options update."""
247+
hass.config_entries.async_schedule_reload(entry.entry_id)

0 commit comments

Comments
 (0)