Fix cancel propagation in update coordinator and config entry (#153504)

This commit is contained in:
Joakim Plate
2025-11-27 19:48:45 +01:00
committed by GitHub
parent 4f6624d0aa
commit 5f522e5afa
7 changed files with 102 additions and 14 deletions
@@ -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