Skip to content

Remove unused import from coordinator.py - #17

Open
achermann-tech wants to merge 1 commit into
goir:mainfrom
achermann-tech:patch-1
Open

Remove unused import from coordinator.py#17
achermann-tech wants to merge 1 commit into
goir:mainfrom
achermann-tech:patch-1

Conversation

@achermann-tech

Copy link
Copy Markdown

coordinator.py imports CONF_SOLARRAD from homeassistant.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:

ImportError: cannot import name 'CONF_SOLARRAD' from 'homeassistant.components.rainmachine'

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

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant