dahua icon indicating copy to clipboard operation
dahua copied to clipboard

Detected that custom integration 'dahua' relies on ContextVar, but should pass the config entry explicitly.

Open Pastaloverzzz opened this issue 5 months ago • 0 comments

In the new core beta-update core-2025.8.0b2, i get the following error from the integration dahua:

WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'dahua' relies on ContextVar, but should pass the config entry explicitly. at custom_components/dahua/__init__.py, line 155: super().__init__(hass, _LOGGER, name=DOMAIN, update_interval=SCAN_INTERVAL_SECONDS). This will stop working in Home Assistant 2026.8

There was the same error code with another integration, maybe this can help you fix the error: https://github.com/home-assistant/core/commit/ad648a9dec265cf1f8e6cf9bfb7dc9956b5f04ac https://github.com/home-assistant/core/issues/149681

I tried fixing it myself but when i changed the code other errors kept popping up.

Pastaloverzzz avatar Aug 04 '25 19:08 Pastaloverzzz