Skip to content

Commit

Permalink
Use hass.config_entries.async_reload to reload config entry
Browse files Browse the repository at this point in the history
  • Loading branch information
jdejaegh committed Dec 29, 2024
1 parent 91d46dc commit 1254ae7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/irm_kmi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ 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)


async def async_migrate_entry(hass, config_entry: ConfigEntry):
Expand Down

0 comments on commit 1254ae7

Please sign in to comment.