Skip to content

Drop the deprecated CONNECTION_CLASS from the config flow - #84

Merged
Mincka merged 1 commit into
mainfrom
fix/conn-class-deprecation
Nov 10, 2026
Merged

Mincka merged 1 commit into
mainfrom
fix/conn-class-deprecation

Conversation

@Mincka

@Mincka Mincka commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Home Assistant 2026.11 logs this on startup:

The deprecated constant CONN_CLASS_CLOUD_POLL was used from spotcast. It will be removed in HA Core 2027.5.0.

Spotcast works today, but once 2027.5.0 removes the constant the import in config_flow_handler.py would raise and the integration would fail to load.

ConfigFlow.CONNECTION_CLASS is no longer read by Home Assistant (nothing in core references it); the connection class lives in iot_class in manifest.json, which Spotcast already sets to cloud_polling. The attribute, its import and its docstring line are removed rather than replaced. No behaviour change.

  • 853 unit tests pass
  • pylint 10.00/10 on the file

Fixes #83

🤖 Generated with Claude Code

Home Assistant 2026.11 warns that CONN_CLASS_CLOUD_POLL is deprecated
and will be removed in 2027.5.0, at which point the import would fail
and Spotcast would not load. ConfigFlow.CONNECTION_CLASS has not been
read by Home Assistant since the connection class moved to iot_class
in the manifest, which Spotcast already sets to cloud_polling, so the
attribute and its import are removed rather than replaced.

Fixes #83

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Mincka
Mincka merged commit 651b7cb into main Nov 10, 2026
7 checks passed
@Mincka
Mincka deleted the fix/conn-class-deprecation branch November 10, 2026 18:01
@Mincka Mincka mentioned this pull request Nov 10, 2026
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.

Deprecated CONN_CLASS_CLOUD_POLL constant will be removed in Home Assistant Core 2027.5

1 participant