mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 18:27:51 +00:00
Don't reload onedrive on options flow (#140712)
This commit is contained in:
parent
4ca31da0a5
commit
012b4645f3
@ -106,11 +106,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: OneDriveConfigEntry) ->
|
|||||||
|
|
||||||
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
|
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
|
||||||
|
|
||||||
async def update_listener(hass: HomeAssistant, entry: OneDriveConfigEntry) -> None:
|
|
||||||
await hass.config_entries.async_reload(entry.entry_id)
|
|
||||||
|
|
||||||
entry.async_on_unload(entry.add_update_listener(update_listener))
|
|
||||||
|
|
||||||
def async_notify_backup_listeners() -> None:
|
def async_notify_backup_listeners() -> None:
|
||||||
for listener in hass.data.get(DATA_BACKUP_AGENT_LISTENERS, []):
|
for listener in hass.data.get(DATA_BACKUP_AGENT_LISTENERS, []):
|
||||||
listener()
|
listener()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user