Skip to content

fix(config_flow): drop the deprecated CONNECTION_CLASS - #154

Open
seevee wants to merge 1 commit into
finity69x2:masterfrom
seevee:fix/drop-connection-class
Open

seevee wants to merge 1 commit into
finity69x2:masterfrom
seevee:fix/drop-connection-class

Conversation

@seevee

@seevee seevee commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Closes #153.

Home Assistant 2026.11 warns that CONN_CLASS_CLOUD_POLL is deprecated and will be removed in 2027.5.0. The config flow set CONNECTION_CLASS from it, and once the constant is gone that line fails at import, so the integration couldn't be set up or reconfigured.

Nothing in Home Assistant reads CONNECTION_CLASS, I checked the 2026.10.4 source. The manifest's iot_class replaced it and already says cloud_polling. So this deletes the one line and changes no behavior.

pytest and ruff are clean locally. I haven't run it on 2026.11 itself, the warning is from the report.

Assisted-by: Claude:claude-fable-5-2

Home Assistant 2026.11 logs a deprecation warning for
CONN_CLASS_CLOUD_POLL and removes the constant in 2027.5.0, at which
point the config flow would fail to import. Nothing in Home Assistant
reads CONNECTION_CLASS, the manifest's iot_class replaced it, so the
line goes and nothing else changes.

Closes finity69x2#153

Assisted-by: Claude:claude-fable-5-2
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.

Deprecation warning after 2026.11

1 participant