Skip to content

Commit

Permalink
Merge pull request #69 from fredericvl/fix_natural_mode
Browse files Browse the repository at this point in the history
Fix error in natural mode
  • Loading branch information
vincentwolsink authored Aug 25, 2023
2 parents 47dfff8 + a31ee63 commit 4f3bf23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions py_agua_iot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,9 +620,9 @@ def __set_item_boolean(self, item, value):
if value_on is None or value_off is None:
raise ValueError(f"Not a boolean type: {item}")

if boolean == True:
if value == True:
self.__set_item_value(item, value_on)
elif boolean == False:
elif value == False:
self.__set_item_value(item, value_off)
else:
raise ValueError(f"Expected boolean: {item}, value: {value}")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="py-agua-iot",
version="0.0.19",
version="0.0.20",
author="Frederic Van Linthoudt",
author_email="[email protected]",
description="py-agua-iot provides controlling heating devices connected via the IOT Agua platform of Micronova",
Expand Down

0 comments on commit 4f3bf23

Please sign in to comment.