Skip to content

v3.10.2 – Fix coroutine warning on Python 3.14

Choose a tag to compare

@FX6W9WZK FX6W9WZK released this 16 Mar 21:24

Fix

coroutine _register_lovelace_resource was never awaited warning on HA 2026.3+ (Python 3.14).

The homeassistant_started event listener used a sync lambda that called hass.async_create_task() — but the coroutine created by _register_lovelace_resource() was never properly awaited.

Before (sync lambda):

lambda _: hass.async_create_task(_register_lovelace_resource(...))

After (async callback):

async def _deferred_register(_event):
    await _register_lovelace_resource(...)