Skip to content

Commit

Permalink
device: fix missing auto mode
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 Oct 22, 2024
1 parent 48a0293 commit c98bbaf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aioairzone_cloud/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
API_AQ_PRESENT,
API_AQ_QUALITY,
API_AQ_STATUS,
API_AUTO_MODE,
API_CONFIG,
API_DEVICE_ID,
API_DOUBLE_SET_POINT,
Expand Down Expand Up @@ -308,6 +309,10 @@ def update_data(self, update: EntityUpdate) -> None:
if aq_status is not None:
self.aq_status = aq_status

auto_mode = data.get(API_AUTO_MODE)
if auto_mode is not None:
self.auto_mode = OperationMode(auto_mode)

double_set_point = parse_bool(data.get(API_DOUBLE_SET_POINT))
if double_set_point is not None:
self.double_set_point = double_set_point
Expand Down

0 comments on commit c98bbaf

Please sign in to comment.