Skip to content

Remove the deprecated CONNECTION_CLASS from the config flow - #399

Open
olliemaller wants to merge 1 commit into
custom-components:masterfrom
olliemaller:fix/remove-connection-class
Open

olliemaller wants to merge 1 commit into
custom-components:masterfrom
olliemaller:fix/remove-connection-class

Conversation

@olliemaller

Copy link
Copy Markdown

Home Assistant logs "The deprecated constant CONN_CLASS_LOCAL_PUSH was used from remote_homeassistant. It will be removed in HA Core 2027.5.0" on every start. Once it's removed, config_flow.py fails to import and the integration can't be set up or configured.

CONNECTION_CLASS on the config flow hasn't been read by Home Assistant for years; the same information is iot_class: local_push in manifest.json. This removes the one line.

Fixes #398

Home Assistant logs "The deprecated constant CONN_CLASS_LOCAL_PUSH was
used from remote_homeassistant" on every start and removes the constant
in 2027.5, after which the config flow fails to import. The connection
class hasn't been used by Home Assistant for years; iot_class in
manifest.json says the same.
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.

usage of a deprecated contant: CONN_CLASS_LOCAL_PUSH

1 participant