From 658bef5447fe65739488de113caf488baeba392d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 19 Mar 2024 11:01:23 -1000 Subject: [PATCH] Migrate samsungtv stop to use run_immediately (#113834) There is no need for a call_soon here --- homeassistant/components/samsungtv/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/samsungtv/__init__.py b/homeassistant/components/samsungtv/__init__.py index 9dcb2f9f57e..68a58710c19 100644 --- a/homeassistant/components/samsungtv/__init__.py +++ b/homeassistant/components/samsungtv/__init__.py @@ -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)