Skip to content
This repository was archived by the owner on Nov 14, 2026. It is now read-only.

Remove deprecated CONNECTION_CLASS from the config flow - #27

Open
olliemaller wants to merge 1 commit into
custom-components:masterfrom
olliemaller:fix/ha-deprecations
Open

olliemaller wants to merge 1 commit into
custom-components:masterfrom
olliemaller:fix/ha-deprecations

Conversation

@olliemaller

Copy link
Copy Markdown

config_entries.CONN_CLASS_* are deprecated and are removed in Home Assistant 2027.5.0. The CONNECTION_CLASS attribute on config flows has been ignored by Home Assistant since 2021 (connection class now comes from iot_class in manifest.json), so removing it changes no behaviour and works on every Home Assistant version.

Checked against Home Assistant 2026.10.4: the file compiles, no new lint errors, every Home Assistant import still resolves, and the replacement API behaves as described. Not tested against real hardware.

`config_entries.CONN_CLASS_*` are deprecated and are removed in Home Assistant
2027.5.0. The `CONNECTION_CLASS` attribute on config flows has been ignored
by Home Assistant since 2021 (connection class now comes from `iot_class` in
manifest.json), so removing it changes no behaviour and works on every
Home Assistant version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MBiFcnWYcdFj9T5kyzEHwQ
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant