diff --git a/custom_components/bermuda/__init__.py b/custom_components/bermuda/__init__.py index ee95a5c..8d73fbd 100644 --- a/custom_components/bermuda/__init__.py +++ b/custom_components/bermuda/__init__.py @@ -196,7 +196,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) - entry.add_update_listener(async_reload_entry) + entry.async_on_unload(entry.add_update_listener(async_reload_entry)) return True