-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Implement battery group mode in HomeWizard #146770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement battery group mode in HomeWizard #146770
Conversation
except UnauthorizedError as ex: | ||
raise HomeAssistantError( | ||
translation_domain=DOMAIN, | ||
translation_key="api_unauthorized", | ||
) from ex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actual handing of this case is done by coordinator (raises a repair)
} | ||
}, | ||
"exceptions": { | ||
"api_disabled": { | ||
"message": "The local API is disabled." | ||
}, | ||
"api_unauthorized": { | ||
"message": "The local API is unauthorized. Restore API access by following the instructions in the repair issue." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a better refer?
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the translation to match what we use in the HomeWizard Energy app
@joostlek, I think this PR is ready for another review, but first, can you see why the check fails? |
* Implement battery group mode for HomeWizard P1 * Clean up test * Disable 'entity_registry_enabled_default' * Fix failing tests because of 'entity_registry_enabled_default' * Proof entities are disabled by default * Undo dev change * Update homeassistant/components/homewizard/select.py * Update homeassistant/components/homewizard/select.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Update homeassistant/components/homewizard/strings.json * Apply suggestions from code review * Update tests due to updated translations --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Proposed change
Add support for Battery Group Mode. This feature allows switching between different control modes. The P1 Meter controls the group of batteries (or a battery), so the select is implemented for the P1 Meter.
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: