Update IZone to new version of library (#60676)

This commit is contained in:
Penny Wood 2021-12-01 14:41:52 +08:00 committed by GitHub
parent 3770a72601
commit 44714081d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View file

@ -209,6 +209,7 @@ class ControllerDevice(ClimateEntity):
return return
self.async_write_ha_state() self.async_write_ha_state()
for zone in self.zones.values(): for zone in self.zones.values():
if zone.hass is not None:
zone.async_schedule_update_ha_state() zone.async_schedule_update_ha_state()
self.async_on_remove( self.async_on_remove(
@ -244,6 +245,7 @@ class ControllerDevice(ClimateEntity):
self._available = available self._available = available
self.async_write_ha_state() self.async_write_ha_state()
for zone in self.zones.values(): for zone in self.zones.values():
if zone.hass is not None:
zone.async_schedule_update_ha_state() zone.async_schedule_update_ha_state()
@property @property
@ -495,6 +497,8 @@ class ZoneDevice(ClimateEntity):
"""Handle zone data updates.""" """Handle zone data updates."""
if zone is not self._zone: if zone is not self._zone:
return return
if not self.available:
return
self._name = zone.name.title() self._name = zone.name.title()
self.async_write_ha_state() self.async_write_ha_state()

View file

@ -2,7 +2,7 @@
"domain": "izone", "domain": "izone",
"name": "iZone", "name": "iZone",
"documentation": "https://www.home-assistant.io/integrations/izone", "documentation": "https://www.home-assistant.io/integrations/izone",
"requirements": ["python-izone==1.1.6"], "requirements": ["python-izone==1.1.8"],
"codeowners": ["@Swamp-Ig"], "codeowners": ["@Swamp-Ig"],
"config_flow": true, "config_flow": true,
"homekit": { "homekit": {

View file

@ -1892,7 +1892,7 @@ python-gitlab==1.6.0
python-hpilo==4.3 python-hpilo==4.3
# homeassistant.components.izone # homeassistant.components.izone
python-izone==1.1.6 python-izone==1.1.8
# homeassistant.components.joaoapps_join # homeassistant.components.joaoapps_join
python-join-api==0.0.6 python-join-api==0.0.6

View file

@ -1136,7 +1136,7 @@ python-ecobee-api==0.2.14
python-forecastio==1.4.0 python-forecastio==1.4.0
# homeassistant.components.izone # homeassistant.components.izone
python-izone==1.1.6 python-izone==1.1.8
# homeassistant.components.juicenet # homeassistant.components.juicenet
python-juicenet==1.0.2 python-juicenet==1.0.2