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
Add presets to Advantage Air #109485
Add presets to Advantage Air #109485
Conversation
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Co-authored-by: J. Nick Koston <nick@koston.org>
LGTM. gjohansson-ST has a request changes on this one so I'll hold off merging for a few days to give him a chance to take a look first. |
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.
Thanks @Bre77 👍
) | ||
return await self.async_turn_off() | ||
if hvac_mode == HVACMode.HEAT_COOL and self.preset_mode != ADVANTAGE_AIR_MYAUTO: | ||
raise ServiceValidationError("Heat/Cool is not supported in this mode") |
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.
In a follow-up PR I think adding translations would be nice 👍
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.
Agreed, I also want to use _handle_coordinator_update
for more platforms and values
I originally tried to make this change in a PR on Jul 15, 2022. Today, 586 days later, preset support has been merged. Thank you gjohansson and bdraco. |
Proposed change
Now that Supported Features and HVAC modes are allowed to change dynamically, this PR adds presets to the Advantage Air climate entity.
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
..coveragerc
.To help with the load of incoming pull requests: