Migrate apple_tv to use async_schedule_reload (#115241)
parent
d2a3473454
commit
469b01bd64
|
@ -380,9 +380,7 @@ class AppleTVConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
if entry.source != SOURCE_IGNORE:
|
if entry.source != SOURCE_IGNORE:
|
||||||
self.hass.async_create_task(
|
self.hass.config_entries.async_schedule_reload(entry.entry_id)
|
||||||
self.hass.config_entries.async_reload(entry.entry_id)
|
|
||||||
)
|
|
||||||
if not allow_exist:
|
if not allow_exist:
|
||||||
raise DeviceAlreadyConfigured
|
raise DeviceAlreadyConfigured
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue