Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hydrawiser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"""

__author__ = 'David Ryan'
__version__ = '0.2'
__version__ = '0.2.1'
__copyright__ = 'Copyright (c) 2020 David Ryan'
__license__ = 'MIT'
3 changes: 3 additions & 0 deletions hydrawiser/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ def set_zones(token, action, relay=None, time=None):
if action in ['run', 'runall', 'suspend', 'suspendall']:
if time is None:
return None
elif time <= 0:
custom_cmd = ''
period_cmd = '&period_id=0'
else:
custom_cmd = '&custom={}'.format(time)
period_cmd = '&period_id=999'
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
setup(
name='Hydrawiser',
packages=['hydrawiser'],
version='0.2',
version='0.2.1',
description='A Python library to communicate with Hunter ' +
'Wi-Fi irrigation controllers ' +
'(https://www.hunter.com) that support the ' +
Expand Down