Skip to content

Conversation

@vsebastiaan
Copy link

Summary

This PR fixes Home Assistant config flow validation issues when using
API-only SolisCloud authentication.

The SolisCloud API supports read-only access using API Key ID + API Secret

  • Plant ID only, but the config flow previously enforced username/password
    validation, resulting in setup errors.

Changes

  • Make portal username optional in the config flow
  • Prevent None values in config validation
  • Accept API secrets provided as either strings or bytes
  • Align Home Assistant config flow with actual SolisCloud API behavior
  • Update documentation to clarify API-only authentication

Context

The issue was reproducible even with valid API credentials and was caused by
config flow validation rather than SolisCloud API authentication itself.

- Make portal username optional
- Accept API secret as string or bytes
- Prevent None values in config flow validation
- Align config flow with SolisCloud API behavior
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.

1 participant