mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 10:13:52 -05:00
Fix cancel propagation in update coordinator and config entry (#153504)
This commit is contained in:
+2
-3
@@ -13,6 +13,5 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
|
||||
|
||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
|
||||
"""Mock an unsuccessful entry setup."""
|
||||
asyncio.current_task().cancel()
|
||||
await asyncio.sleep(0)
|
||||
"""Mock an leaked cancellation, without our own task being cancelled."""
|
||||
raise asyncio.CancelledError
|
||||
|
||||
Reference in New Issue
Block a user