Remove unused import from coordinator.py - #17
Open
achermann-tech wants to merge 1 commit into
Open
Conversation
coordinator.py imports CONF_SOLARRAD from homeassistant.components.rainmachine, an unrelated built-in integration. This constant is not used anywhere in the file, and the import now fails on current Home Assistant Core versions (ImportError: cannot import name 'CONF_SOLARRAD' from 'homeassistant.components.rainmachine'), which breaks setup of the Solar Manager integration entirely. This removes the stray/unused import so the integration can load again.Removed unused import for CONF_SOLARRAD.
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.
coordinator.py imports
CONF_SOLARRADfromhomeassistant.components.rainmachine, an unrelated built-in Home Assistant integration. This constant is never actually used anywhere in the file (looks like a stray copy-paste leftover), and the import now fails on current Home Assistant Core versions:This breaks setup of the Solar Manager integration entirely (config entry ends up in setup_error).
This PR simply removes the stray/unused import so the integration can load again. No other functional changes.
Tested on my own Home Assistant instance (Core 2026.8.x) - after applying this change and restarting, the integration loads cleanly and all sensors report correctly again.
Fixes #14 Fixes #15