Migrate samsungtv stop to use run_immediately (#113834)

There is no need for a call_soon here
This commit is contained in:
J. Nick Koston 2024-03-19 11:01:23 -10:00 committed by GitHub
parent 6b5518b2bf
commit 658bef5447
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)