Skip to content

Commit

Permalink
Update IZone to new version of library (home-assistant#60676)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swamp-Ig authored Dec 1, 2021
1 parent 3770a72 commit 4471408
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions homeassistant/components/izone/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ def controller_update(ctrl: Controller) -> None:
return
self.async_write_ha_state()
for zone in self.zones.values():
zone.async_schedule_update_ha_state()
if zone.hass is not None:
zone.async_schedule_update_ha_state()

self.async_on_remove(
async_dispatcher_connect(
Expand Down Expand Up @@ -244,7 +245,8 @@ def set_available(self, available: bool, ex: Exception = None) -> None:
self._available = available
self.async_write_ha_state()
for zone in self.zones.values():
zone.async_schedule_update_ha_state()
if zone.hass is not None:
zone.async_schedule_update_ha_state()

@property
def unique_id(self):
Expand Down Expand Up @@ -495,6 +497,8 @@ def zone_update(ctrl: Controller, zone: Zone) -> None:
"""Handle zone data updates."""
if zone is not self._zone:
return
if not self.available:
return
self._name = zone.name.title()
self.async_write_ha_state()

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/izone/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"domain": "izone",
"name": "iZone",
"documentation": "https://www.home-assistant.io/integrations/izone",
"requirements": ["python-izone==1.1.6"],
"requirements": ["python-izone==1.1.8"],
"codeowners": ["@Swamp-Ig"],
"config_flow": true,
"homekit": {
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1892,7 +1892,7 @@ python-gitlab==1.6.0
python-hpilo==4.3

# homeassistant.components.izone
python-izone==1.1.6
python-izone==1.1.8

# homeassistant.components.joaoapps_join
python-join-api==0.0.6
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ python-ecobee-api==0.2.14
python-forecastio==1.4.0

# homeassistant.components.izone
python-izone==1.1.6
python-izone==1.1.8

# homeassistant.components.juicenet
python-juicenet==1.0.2
Expand Down

0 comments on commit 4471408

Please sign in to comment.