diff --git a/custom_components/wellbeing/__init__.py b/custom_components/wellbeing/__init__.py index d13f797..e64d16f 100644 --- a/custom_components/wellbeing/__init__.py +++ b/custom_components/wellbeing/__init__.py @@ -84,6 +84,11 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: return unloaded +async def async_reload_entry(hass: HomeAssistant, entry: ConfigEntry) -> None: + """Reload the config entry when it changed.""" + await hass.config_entries.async_reload(entry.entry_id) + + class WellbeingDataUpdateCoordinator(DataUpdateCoordinator): """Class to manage fetching data from the API."""