Add Z-Wave thermostat fan entity (#65865)

* Add Z-Wave thermostat fan entity

* Fix failing test, increase number of entities to 27

* Add tests to improve coverage

* Take back unrelated changes to climate.py

* Clean up guard clauses, use info.primary_value, and make entity disabled by default

* Fix tests

* Add more tests for code coverage

* Remove unused const

* Remove speed parameter from overridden method since it was removed from entity

* Address PR comments
This commit is contained in:
Francois Chagnon 2022-03-15 22:17:51 -04:00 committed by GitHub
parent 4b963c2ac0
commit 21aa07e3e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 517 additions and 3 deletions

View file

@ -34,6 +34,7 @@ from zwave_js_server.const.command_class.sound_switch import (
)
from zwave_js_server.const.command_class.thermostat import (
THERMOSTAT_CURRENT_TEMP_PROPERTY,
THERMOSTAT_FAN_MODE_PROPERTY,
THERMOSTAT_MODE_PROPERTY,
THERMOSTAT_SETPOINT_PROPERTY,
)
@ -510,6 +511,17 @@ DISCOVERY_SCHEMAS = [
type={"any"},
),
),
# thermostat fan
ZWaveDiscoverySchema(
platform="fan",
hint="thermostat_fan",
primary_value=ZWaveValueDiscoverySchema(
command_class={CommandClass.THERMOSTAT_FAN_MODE},
property={THERMOSTAT_FAN_MODE_PROPERTY},
type={"number"},
),
entity_registry_enabled_default=False,
),
# humidifier
# hygrostats supporting mode (and optional setpoint)
ZWaveDiscoverySchema(