-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Allow configuring KNX preset_modes via the operation_modes variable #33068
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
Allow configuring KNX preset_modes via the operation_modes variable #33068
Conversation
Hey there @Julius2342, mind taking a look at this pull request as its been labeled with a integration ( |
This does look a bit weird, but maybe it's right. Note presets!=mode in HA. You set the separately. But here they seem combined? |
I agree with you that this might cause confusion and is rather counterintuitive compared to HA. It might be better to split them in 2 variables. |
What's the status here? Technically this change looks alright since the config option is just to set an option in the xkxn library. The option items are also the names used in xknx and not the Home Assistant presets or HVAC modes. So I'm not sure it would be more clear for users to split the options in presets and modes. |
I think we can merge this for now if @FredericMa |
All OK for me. |
Please open a PR to our docs repo and link that PR in the PR description here. Then we can merge. |
You mean, extend the docs a bit to make this change more clear? Will do. |
This change makes the overriding of the supported operation_modes in the KNX Climate integration more clear. See home-assistant/core#33068 for the related PR.
Updated the docs. |
Proposed change
XKNX accepts both hvac_modes and preset_modes but the integration only allows hvac_modes to be set. This PR fixes that by also allowing preset_modes. This is only an issue if you override the default supported operation modes.
Docs PR:
home-assistant/home-assistant.io#13042
Type of change
Example entry for
configuration.yaml
:Additional information
Checklist
black --fast 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
.The integration reached or maintains the following Integration Quality Scale: