evohome: allow two round thermostats per gateway (#30589)

* bugfix issue #30517
* bump library, tweak name in manifest
* remove lint hint
This commit is contained in:
David Bonnes 2020-01-08 18:57:28 +00:00 committed by GitHub
parent 4cd2e09fb3
commit 2c1e354537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 11 deletions

View File

@ -3,7 +3,7 @@
"name": "AdGuard Home", "name": "AdGuard Home",
"config_flow": true, "config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/adguard", "documentation": "https://www.home-assistant.io/integrations/adguard",
"requirements": ["adguardhome==0.4.1"], "requirements": ["adguardhome==0.4.0"],
"dependencies": [], "dependencies": [],
"codeowners": ["@frenck"] "codeowners": ["@frenck"]
} }

View File

@ -81,8 +81,8 @@ async def async_setup_platform(
broker.params[CONF_LOCATION_IDX], broker.params[CONF_LOCATION_IDX],
) )
# special case of RoundModulation/RoundWireless (is a single zone system) # special case of RoundModulation/RoundWireless as a single zone system
if broker.config["zones"][0]["zoneType"] == "Thermostat": if len(broker.tcs.zones) == 1 and list(broker.tcs.zones.keys())[0] == "Thermostat":
zone = list(broker.tcs.zones.values())[0] zone = list(broker.tcs.zones.values())[0]
_LOGGER.debug( _LOGGER.debug(
"Found the Thermostat (%s), id=%s, name=%s", "Found the Thermostat (%s), id=%s, name=%s",
@ -121,9 +121,7 @@ class EvoClimateDevice(EvoDevice, ClimateDevice):
async def _set_tcs_mode(self, op_mode: str) -> None: async def _set_tcs_mode(self, op_mode: str) -> None:
"""Set a Controller to any of its native EVO_* operating modes.""" """Set a Controller to any of its native EVO_* operating modes."""
await self._call_client_api( await self._call_client_api(self._evo_tcs.set_status(op_mode))
self._evo_tcs._set_status(op_mode) # pylint: disable=protected-access
)
@property @property
def hvac_modes(self) -> List[str]: def hvac_modes(self) -> List[str]:

View File

@ -1,8 +1,8 @@
{ {
"domain": "evohome", "domain": "evohome",
"name": "Honeywell evohome / Total Connect Comfort", "name": "Honeywell Total Connect Comfort (Europe)",
"documentation": "https://www.home-assistant.io/integrations/evohome", "documentation": "https://www.home-assistant.io/integrations/evohome",
"requirements": ["evohome-async==0.3.4b1"], "requirements": ["evohome-async==0.3.5.post1"],
"dependencies": [], "dependencies": [],
"codeowners": ["@zxdavb"] "codeowners": ["@zxdavb"]
} }

View File

@ -117,7 +117,7 @@ adafruit-circuitpython-mcp230xx==1.1.2
adb-shell==0.1.1 adb-shell==0.1.1
# homeassistant.components.adguard # homeassistant.components.adguard
adguardhome==0.4.1 adguardhome==0.4.0
# homeassistant.components.frontier_silicon # homeassistant.components.frontier_silicon
afsapi==0.0.4 afsapi==0.0.4
@ -510,7 +510,7 @@ eternalegypt==0.0.11
# evdev==1.1.2 # evdev==1.1.2
# homeassistant.components.evohome # homeassistant.components.evohome
evohome-async==0.3.4b1 evohome-async==0.3.5.post1
# homeassistant.components.dlib_face_detect # homeassistant.components.dlib_face_detect
# homeassistant.components.dlib_face_identify # homeassistant.components.dlib_face_identify

View File

@ -32,7 +32,7 @@ abodepy==0.16.7
adb-shell==0.1.1 adb-shell==0.1.1
# homeassistant.components.adguard # homeassistant.components.adguard
adguardhome==0.4.1 adguardhome==0.4.0
# homeassistant.components.geonetnz_quakes # homeassistant.components.geonetnz_quakes
aio_geojson_geonetnz_quakes==0.11 aio_geojson_geonetnz_quakes==0.11