Detected that custom integration 'dahua' relies on ContextVar, but should pass the config entry explicitly.
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.