mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
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
|
for component in PLATFORMS
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
await asyncio.sleep(0)
|
||||||
# Unsubscribe reload dispatchers
|
# Unsubscribe reload dispatchers
|
||||||
while reload_dispatchers := mqtt_data.reload_dispatchers:
|
while reload_dispatchers := mqtt_data.reload_dispatchers:
|
||||||
reload_dispatchers.pop()()
|
reload_dispatchers.pop()()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user