mirror of
https://github.com/home-assistant/core.git
synced 2025-08-14 10:05:13 +02:00
MySensors: await shutdown of gateway instead of creating a task
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user