Skip to content

Commit 1254ae7

Browse files
committed
Use hass.config_entries.async_reload to reload config entry
1 parent 91d46dc commit 1254ae7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

custom_components/irm_kmi/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
4545

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

5150

5251
async def async_migrate_entry(hass, config_entry: ConfigEntry):

0 commit comments

Comments
 (0)