mirror of https://github.com/home-assistant/core
Fix blocking MQTT entry unload (#89922)
* Remove unneeded async_block_till_done * use await asyncio.sleep(0) instead
This commit is contained in:
parent
6ad9f420ab
commit
e937693d97
|
@ -704,7 +704,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||
for component in PLATFORMS
|
||||
)
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
await asyncio.sleep(0)
|
||||
# Unsubscribe reload dispatchers
|
||||
while reload_dispatchers := mqtt_data.reload_dispatchers:
|
||||
reload_dispatchers.pop()()
|
||||
|
|
Loading…
Reference in New Issue