Skip to content

Commit

Permalink
Merge pull request #123 from golles/122-home-assistant-crashes-when-c…
Browse files Browse the repository at this point in the history
…hanging-scaninterval

Use `hass.config_entries.async_reload` to reload
  • Loading branch information
golles authored Jul 13, 2024
2 parents bcb42df + 4287a52 commit 7dfb4ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/kamstrup_403/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,4 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:

async def async_reload_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Reload config entry."""
await async_unload_entry(hass, entry)
await async_setup_entry(hass, entry)
await hass.config_entries.async_reload(entry.entry_id)

0 comments on commit 7dfb4ea

Please sign in to comment.