-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Replace climate fan speed 'silent' with a button #135075
Conversation
"""Representation of a Palazzetti Silent button.""" | ||
|
||
_attr_translation_key = "silent" | ||
_attr_icon = "mdi:volume-mute" |
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.
Please use icon translations
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.
done
await setup_integration(hass, mock_config_entry) | ||
|
||
mock_palazzetti_client.set_fan_silent.side_effect = CommunicationError() | ||
with pytest.raises(HomeAssistantError): |
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.
with pytest.raises(HomeAssistantError): | |
with pytest.raises(HomeAssistantError, match=".."): |
Let's also assert the raised error message
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.
done
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Proposed change
Upon talking with users and studying the existing API, we found that 'silent' is not an actual fan speed for the stove. The models that have a 'silent' mode are setting the main + secondary fans speed to 0 and combustion power to 3. Silent is more a shortcut than a state.
This PR creates a button to trigger the silent mode, removes the fan_mode 'silent', and fixes a bug where it was not possible to change the fan_mode to '0'.
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
Palazzetti integration: Add fan speed 0 and silent mode home-assistant.io#36826
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: