Skip to content

Commit

Permalink
Update __init__.py (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohNan authored Aug 11, 2024
1 parent 58c6681 commit 823996a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/wellbeing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down

0 comments on commit 823996a

Please sign in to comment.