Skip to content

Commit

Permalink
Update hvac.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Noltari committed Oct 26, 2023
1 parent 1c6cebb commit e5ab210
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sim/hvac.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ def post(self, data: dict[str, Any]) -> Any:
def put(self, data: dict[str, Any]) -> Any:
"""PUT Local API Zone."""
keys = data.keys() + [API_SYSTEM_ID, API_ZONE_ID]

acs_on = data.get(API_ACS_ON)
if acs_on is not None:
self.on = bool(acs_on)

return api_filter_dict(self.data(), keys)


Expand Down

0 comments on commit e5ab210

Please sign in to comment.