Add vallox fan speed control (#82548)
* fan.set_percentage + tests * let's see what is not yet covered * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * tests fix * vallox_websocket_api 3.0.0 * more coverage * test coverage * Update tests/components/vallox/test_fan.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * raise exceptions on user input * Supported features are different per preset mode. * Test fixes * Static supported features is back. Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
a3c4996291
commit
d62bdbb9ff
12 changed files with 401 additions and 92 deletions
|
@ -22,20 +22,20 @@ DEFAULT_FAN_SPEED_HOME = 50
|
|||
DEFAULT_FAN_SPEED_AWAY = 25
|
||||
DEFAULT_FAN_SPEED_BOOST = 65
|
||||
|
||||
VALLOX_PROFILE_TO_STR_SETTABLE = {
|
||||
VALLOX_PROFILE_TO_PRESET_MODE_SETTABLE = {
|
||||
VALLOX_PROFILE.HOME: "Home",
|
||||
VALLOX_PROFILE.AWAY: "Away",
|
||||
VALLOX_PROFILE.BOOST: "Boost",
|
||||
VALLOX_PROFILE.FIREPLACE: "Fireplace",
|
||||
}
|
||||
|
||||
VALLOX_PROFILE_TO_STR_REPORTABLE = {
|
||||
VALLOX_PROFILE_TO_PRESET_MODE_REPORTABLE = {
|
||||
VALLOX_PROFILE.EXTRA: "Extra",
|
||||
**VALLOX_PROFILE_TO_STR_SETTABLE,
|
||||
**VALLOX_PROFILE_TO_PRESET_MODE_SETTABLE,
|
||||
}
|
||||
|
||||
STR_TO_VALLOX_PROFILE_SETTABLE = {
|
||||
value: key for (key, value) in VALLOX_PROFILE_TO_STR_SETTABLE.items()
|
||||
PRESET_MODE_TO_VALLOX_PROFILE_SETTABLE = {
|
||||
value: key for (key, value) in VALLOX_PROFILE_TO_PRESET_MODE_SETTABLE.items()
|
||||
}
|
||||
|
||||
VALLOX_CELL_STATE_TO_STR = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue