Add 3157100-E model to Centralite thermostat (#61073)

This commit is contained in:
Alexei Chetroi 2021-12-05 20:36:05 -05:00 committed by GitHub
parent ecdb18eb0a
commit 4e9fd56b8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -599,7 +599,7 @@ class ZenWithinThermostat(Thermostat):
channel_names=CHANNEL_THERMOSTAT, channel_names=CHANNEL_THERMOSTAT,
aux_channels=CHANNEL_FAN, aux_channels=CHANNEL_FAN,
manufacturers="Centralite", manufacturers="Centralite",
models="3157100", models={"3157100", "3157100-E"},
stop_on_match=True, stop_on_match=True,
) )
class CentralitePearl(ZenWithinThermostat): class CentralitePearl(ZenWithinThermostat):

View file

@ -61,6 +61,7 @@ from .core import discovery
from .core.const import ( from .core.const import (
CHANNEL_ANALOG_INPUT, CHANNEL_ANALOG_INPUT,
CHANNEL_ELECTRICAL_MEASUREMENT, CHANNEL_ELECTRICAL_MEASUREMENT,
CHANNEL_FAN,
CHANNEL_HUMIDITY, CHANNEL_HUMIDITY,
CHANNEL_ILLUMINANCE, CHANNEL_ILLUMINANCE,
CHANNEL_LEAF_WETNESS, CHANNEL_LEAF_WETNESS,
@ -636,6 +637,13 @@ class ThermostatHVACAction(Sensor, id_suffix="hvac_action"):
self.async_write_ha_state() self.async_write_ha_state()
@MULTI_MATCH(
channel_names=CHANNEL_THERMOSTAT,
aux_channels=CHANNEL_FAN,
manufacturers="Centralite",
models={"3157100", "3157100-E"},
stop_on_match=True,
)
@MULTI_MATCH( @MULTI_MATCH(
channel_names=CHANNEL_THERMOSTAT, channel_names=CHANNEL_THERMOSTAT,
manufacturers="Zen Within", manufacturers="Zen Within",