mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Migrate samsungtv stop to use run_immediately (#113834)
There is no need for a call_soon here
This commit is contained in:
@@ -149,7 +149,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
await bridge.async_close_remote()
|
await bridge.async_close_remote()
|
||||||
|
|
||||||
entry.async_on_unload(
|
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)
|
await _async_update_ssdp_locations(hass, entry)
|
||||||
|
Reference in New Issue
Block a user