Handle all single zone thermostats (#27168)
This commit is contained in:
parent
d36d123cf7
commit
f500367721
2 changed files with 11 additions and 10 deletions
|
@ -75,21 +75,20 @@ async def async_setup_platform(
|
|||
loc_idx = broker.params[CONF_LOCATION_IDX]
|
||||
|
||||
_LOGGER.debug(
|
||||
"Found Location/Controller, id=%s [%s], name=%s (location_idx=%s)",
|
||||
broker.tcs.systemId,
|
||||
"Found the Location/Controller (%s), id=%s, name=%s (location_idx=%s)",
|
||||
broker.tcs.modelType,
|
||||
broker.tcs.systemId,
|
||||
broker.tcs.location.name,
|
||||
loc_idx,
|
||||
)
|
||||
|
||||
# special case of RoundThermostat (is single zone)
|
||||
if broker.config["zones"][0]["modelType"] == "RoundModulation":
|
||||
# special case of RoundModulation/RoundWireless (is a single zone system)
|
||||
if broker.config["zones"][0]["zoneType"] == "Thermostat":
|
||||
zone = list(broker.tcs.zones.values())[0]
|
||||
_LOGGER.debug(
|
||||
"Found %s, id=%s [%s], name=%s",
|
||||
zone.zoneType,
|
||||
zone.zoneId,
|
||||
"Found the Thermostat (%s), id=%s, name=%s",
|
||||
zone.modelType,
|
||||
zone.zoneId,
|
||||
zone.name,
|
||||
)
|
||||
|
||||
|
@ -101,10 +100,10 @@ async def async_setup_platform(
|
|||
zones = []
|
||||
for zone in broker.tcs.zones.values():
|
||||
_LOGGER.debug(
|
||||
"Found %s, id=%s [%s], name=%s",
|
||||
"Found a %s (%s), id=%s, name=%s",
|
||||
zone.zoneType,
|
||||
zone.zoneId,
|
||||
zone.modelType,
|
||||
zone.zoneId,
|
||||
zone.name,
|
||||
)
|
||||
zones.append(EvoZone(broker, zone))
|
||||
|
|
|
@ -34,7 +34,9 @@ async def async_setup_platform(
|
|||
broker = hass.data[DOMAIN]["broker"]
|
||||
|
||||
_LOGGER.debug(
|
||||
"Found %s, id: %s", broker.tcs.hotwater.zone_type, broker.tcs.hotwater.zoneId
|
||||
"Found the DHW Controller (%s), id: %s",
|
||||
broker.tcs.hotwater.zone_type,
|
||||
broker.tcs.hotwater.zoneId,
|
||||
)
|
||||
|
||||
evo_dhw = EvoDHW(broker, broker.tcs.hotwater)
|
||||
|
|
Loading…
Add table
Reference in a new issue