mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Handle all single zone thermostats (#27168)
This commit is contained in:
parent
d36d123cf7
commit
f500367721
@ -75,21 +75,20 @@ async def async_setup_platform(
|
|||||||
loc_idx = broker.params[CONF_LOCATION_IDX]
|
loc_idx = broker.params[CONF_LOCATION_IDX]
|
||||||
|
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"Found Location/Controller, id=%s [%s], name=%s (location_idx=%s)",
|
"Found the Location/Controller (%s), id=%s, name=%s (location_idx=%s)",
|
||||||
broker.tcs.systemId,
|
|
||||||
broker.tcs.modelType,
|
broker.tcs.modelType,
|
||||||
|
broker.tcs.systemId,
|
||||||
broker.tcs.location.name,
|
broker.tcs.location.name,
|
||||||
loc_idx,
|
loc_idx,
|
||||||
)
|
)
|
||||||
|
|
||||||
# special case of RoundThermostat (is single zone)
|
# special case of RoundModulation/RoundWireless (is a single zone system)
|
||||||
if broker.config["zones"][0]["modelType"] == "RoundModulation":
|
if broker.config["zones"][0]["zoneType"] == "Thermostat":
|
||||||
zone = list(broker.tcs.zones.values())[0]
|
zone = list(broker.tcs.zones.values())[0]
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"Found %s, id=%s [%s], name=%s",
|
"Found the Thermostat (%s), id=%s, name=%s",
|
||||||
zone.zoneType,
|
|
||||||
zone.zoneId,
|
|
||||||
zone.modelType,
|
zone.modelType,
|
||||||
|
zone.zoneId,
|
||||||
zone.name,
|
zone.name,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -101,10 +100,10 @@ async def async_setup_platform(
|
|||||||
zones = []
|
zones = []
|
||||||
for zone in broker.tcs.zones.values():
|
for zone in broker.tcs.zones.values():
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"Found %s, id=%s [%s], name=%s",
|
"Found a %s (%s), id=%s, name=%s",
|
||||||
zone.zoneType,
|
zone.zoneType,
|
||||||
zone.zoneId,
|
|
||||||
zone.modelType,
|
zone.modelType,
|
||||||
|
zone.zoneId,
|
||||||
zone.name,
|
zone.name,
|
||||||
)
|
)
|
||||||
zones.append(EvoZone(broker, zone))
|
zones.append(EvoZone(broker, zone))
|
||||||
|
@ -34,7 +34,9 @@ async def async_setup_platform(
|
|||||||
broker = hass.data[DOMAIN]["broker"]
|
broker = hass.data[DOMAIN]["broker"]
|
||||||
|
|
||||||
_LOGGER.debug(
|
_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)
|
evo_dhw = EvoDHW(broker, broker.tcs.hotwater)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user