Skip to content

Fix integration failing to load on recent Home Assistant versions#5

Open
softwarebloat wants to merge 1 commit intomsx8020:mainfrom
softwarebloat:patch-1
Open

Fix integration failing to load on recent Home Assistant versions#5
softwarebloat wants to merge 1 commit intomsx8020:mainfrom
softwarebloat:patch-1

Conversation

@softwarebloat
Copy link

@softwarebloat softwarebloat commented Jan 21, 2026

This PR fixes compatibility with recent Home Assistant versions by removing the deprecated Config import from homeassistant.core.
Also reported in issue #3

Home Assistant no longer exposes `Config`, causing the integration to fail at import time with:
    ImportError: cannot import name 'Config' from 'homeassistant.core'

The integration now uses HomeAssistant types instead, allowing it to load correctly on current HA releases.

No functional changes beyond restoring compatibility.

Tested using following versions
image

This PR fixes compatibility with recent Home Assistant versions by removing the deprecated
`Config` import from `homeassistant.core`.

Home Assistant no longer exposes `Config`, causing the integration to fail at import time
with:
    ImportError: cannot import name 'Config' from 'homeassistant.core'

The integration now uses `HomeAssistant` / standard config types instead, allowing it to
load correctly on current HA releases.

No functional changes beyond restoring compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant