From 79524b607f8ba1a29003062163a39e6a81b35ef5 Mon Sep 17 00:00:00 2001 From: functionpointer Date: Fri, 22 Jan 2021 20:47:16 +0100 Subject: [PATCH] MySensors: await shutdown of gateway instead of creating a task --- homeassistant/components/mysensors/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/mysensors/__init__.py b/homeassistant/components/mysensors/__init__.py index 84f2e788c53..3e099ba0c6e 100644 --- a/homeassistant/components/mysensors/__init__.py +++ b/homeassistant/components/mysensors/__init__.py @@ -209,7 +209,7 @@ async def async_unload_entry(hass: HomeAssistantType, entry: ConfigEntry) -> boo del hass.data[DOMAIN][MYSENSORS_GATEWAYS][entry.entry_id] - hass.async_create_task(gw_stop(hass, gateway)) + await gw_stop(hass, gateway) return True