mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Migrate samsungtv stop to use run_immediately (#113834)
There is no need for a call_soon here
This commit is contained in:
parent
6b5518b2bf
commit
658bef5447
@ -149,7 +149,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
await bridge.async_close_remote()
|
||||
|
||||
entry.async_on_unload(
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, stop_bridge)
|
||||
hass.bus.async_listen_once(
|
||||
EVENT_HOMEASSISTANT_STOP, stop_bridge, run_immediately=True
|
||||
)
|
||||
)
|
||||
|
||||
await _async_update_ssdp_locations(hass, entry)
|
||||
|
Loading…
x
Reference in New Issue
Block a user