MySensors: await shutdown of gateway instead of creating a task

This commit is contained in:
functionpointer
2021-01-22 20:47:16 +01:00
parent 296f325b00
commit 79524b607f

View File

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