Skip to content

Commit

Permalink
zone: always expose air/floor demand
Browse files Browse the repository at this point in the history
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
  • Loading branch information
Noltari committed Jul 11, 2024
1 parent 1b473db commit 1266681
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 0 additions & 7 deletions aioairzone_cloud/hvac.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,6 @@ def data(self) -> dict[str, Any]:
data[AZD_TEMP] = self.get_temperature()
data[AZD_TEMP_STEP] = self.get_temp_step()

air_demand = self.get_air_demand()
if air_demand is not None:
data[AZD_AIR_DEMAND] = air_demand
floor_demand = self.get_floor_demand()
if floor_demand is not None:
data[AZD_FLOOR_DEMAND] = floor_demand

aq_active = self.get_aq_active()
if aq_active is not None:
data[AZD_AQ_ACTIVE] = aq_active
Expand Down
4 changes: 4 additions & 0 deletions aioairzone_cloud/zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
API_SYSTEM_NUMBER,
API_VALUE,
API_ZONE_NUMBER,
AZD_AIR_DEMAND,
AZD_FLOOR_DEMAND,
AZD_MASTER,
AZD_SYSTEM,
AZD_SYSTEM_ID,
Expand Down Expand Up @@ -56,6 +58,8 @@ def data(self) -> dict[str, Any]:
"""Return Zone data."""
data = super().data()

data[AZD_AIR_DEMAND] = self.get_air_demand()
data[AZD_FLOOR_DEMAND] = self.get_floor_demand()
data[AZD_MASTER] = self.get_master()
data[AZD_SYSTEM] = self.get_system_num()
data[AZD_ZONE] = self.get_zone()
Expand Down

0 comments on commit 1266681

Please sign in to comment.