Fix HVAC modes for zha Stelpro fan heater (#66293)

This commit is contained in:
EtienneMD
2022-02-14 17:06:48 -05:00
committed by GitHub
parent f81b6d61b9
commit ffe821a1f7

View File

@@ -756,3 +756,18 @@ class BecaThermostat(Thermostat):
)
return False
@MULTI_MATCH(
channel_names=CHANNEL_THERMOSTAT,
manufacturers="Stelpro",
models={"SORB"},
stop_on_match_group=CHANNEL_THERMOSTAT,
)
class StelproFanHeater(Thermostat):
"""Stelpro Fan Heater implementation."""
@property
def hvac_modes(self) -> tuple[str, ...]:
"""Return only the heat mode, because the device can't be turned off."""
return (HVAC_MODE_HEAT,)