Skip to content

Conversation

@Poshy163
Copy link
Collaborator

@Poshy163 Poshy163 commented Jul 7, 2025

Fixes #196

Wasn't fixed when moving over from using my custom class during testing and was never swapped back

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes an instantiation issue where the AlphaESS client class wasn’t referenced correctly, leading to an unknown error during setup.

  • Updates the validate_input function to instantiate the alphaess client from the module rather than calling the module itself.
  • Restores correct client authentication behavior.
Comments suppressed due to low confidence (1)

custom_components/alphaess/config_flow.py:28

  • This update fixes the client instantiation logic, but there aren't any unit tests covering validate_input. Consider adding tests to verify that the correct client is instantiated and authenticate() is called with valid inputs.
    client = alphaess.alphaess(data["AppID"], data["AppSecret"], ipaddress=data["IPAddress"])

Repository owner deleted a comment from Copilot AI Jul 7, 2025
@CharlesGillanders CharlesGillanders merged commit eea206b into main Jul 15, 2025
7 checks passed
@Poshy163 Poshy163 deleted the Fix-unknown-error branch July 29, 2025 10:19
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.

Unknown Error Occurred during setup

3 participants