Repository navigation
Drop the deprecated CONNECTION_CLASS from the config flow - #84
Merged
Merged
Conversation
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]>
1 task done
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Home Assistant 2026.11 logs this on startup:
Spotcast works today, but once 2027.5.0 removes the constant the import in
config_flow_handler.pywould raise and the integration would fail to load.ConfigFlow.CONNECTION_CLASSis no longer read by Home Assistant (nothing in core references it); the connection class lives iniot_classinmanifest.json, which Spotcast already sets tocloud_polling. The attribute, its import and its docstring line are removed rather than replaced. No behaviour change.Fixes #83
🤖 Generated with Claude Code