Skip to content

Commit

Permalink
Merge pull request #26 from tchellomello/version_0.0.5
Browse files Browse the repository at this point in the history
Version 0.0.5
  • Loading branch information
tchellomello authored Jun 16, 2018
2 parents c1148aa + 3dbb928 commit fcd1d1e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion raincloudy/faucet.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def update(self):
def _find_zone_by_id(self, zone_id):
"""Return zone by id."""
if not self.zones:
return
return None

zone = list(filter(
lambda zone: zone.id == zone_id, self.zones))
Expand Down Expand Up @@ -263,6 +263,7 @@ def _set_rain_delay(self, zoneid, value):
attr = 'zone{}_rain_delay_select'.format(zoneid)
ddata[attr] = value
self.submit_action(ddata)
return True

@property
def rain_delay(self):
Expand Down Expand Up @@ -296,6 +297,7 @@ def _set_auto_watering(self, zoneid, value):
except KeyError:
pass
self.submit_action(ddata)
return True

@property
def auto_watering(self):
Expand Down
1 change: 1 addition & 0 deletions raincloudy/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def find_attr(data, key):
for member in data:
if member.get('cmd') == 'as' and member.get('id') == key:
return member.get('val')
return None


def find_program_status(data, zone):
Expand Down
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@
"""RainCloudy setup script."""
from setuptools import setup


def readme():
with open('README.rst') as desc:
return desc.read()


setup(
name='raincloudy',
packages=['raincloudy'],
version='0.0.4',
version='0.0.5',
description='A Python library to communicate with Melnor' +
' RainCloud Smart Garden Watering Irrigation Timer' +
' (https://wwww.melnor.com/)',
long_description=readme(),
author='Marcelo Moreira de Mello',
author_email='tchello.mello@gmail.com',
url='https://github.com/tchellomello/raincloudy',
Expand Down

0 comments on commit fcd1d1e

Please sign in to comment.