Try fixing the bug

This commit is contained in:
Tsvi Mostovicz
2024-06-02 16:07:57 +00:00
parent c790d4e486
commit c30e190848

View File

@@ -154,6 +154,11 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
async_update_unique_ids(ent_reg, config_entry.entry_id, old_prefix)
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
async def update_listener(hass: HomeAssistant, entry: ConfigEntry) -> None:
await hass.config_entries.async_reload(entry.entry_id)
config_entry.async_on_unload(config_entry.add_update_listener(update_listener))
return True