mirror of
https://github.com/jdejaegh/irm-kmi-ha.git
synced 2025-06-27 03:35:56 +02:00
Use hass.config_entries.async_reload to reload config entry
This commit is contained in:
parent
91d46dcb6c
commit
1254ae7157
1 changed files with 1 additions and 2 deletions
|
@ -45,8 +45,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||||
|
|
||||||
async def async_reload_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
|
async def async_reload_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
|
||||||
"""Reload config entry."""
|
"""Reload config entry."""
|
||||||
await async_unload_entry(hass, entry)
|
await hass.config_entries.async_reload(entry.entry_id)
|
||||||
await async_setup_entry(hass, entry)
|
|
||||||
|
|
||||||
|
|
||||||
async def async_migrate_entry(hass, config_entry: ConfigEntry):
|
async def async_migrate_entry(hass, config_entry: ConfigEntry):
|
||||||
|
|
Loading…
Add table
Reference in a new issue