Skip to content

Commit

Permalink
v.0.0.2 (#16)
Browse files Browse the repository at this point in the history
* Updated README

* Force faucet battery to return None when not able to determine value. (#15)

* Bump dev version 0.0.2
  • Loading branch information
tchellomello authored Oct 9, 2017
1 parent 13dca26 commit 7056929
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ RainCloudy
.. image:: https://coveralls.io/repos/github/tchellomello/raincloudy/badge.svg?branch=master
:target: https://coveralls.io/github/tchellomello/raincloudy?branch=master

.. image:: https://img.shields.io/pypi/pyversions/raincloudy.svg
:target: https://pypi.python.org/pypi/raincloudy


RainCloudy is a library written in Python 2.7/3.x that manages the Melnor RainCloud Smart Garden Watering Irrigation Timer.

Expand Down
3 changes: 2 additions & 1 deletion raincloudy/faucet.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def status(self):
@property
def battery(self):
"""Return faucet battery."""
return self._lookup_attr('active_faucet_battery_level')
battery_level = self._lookup_attr('active_faucet_battery_level')
return battery_level if isinstance(battery_level, int) else None

def update(self):
"""Callback self._controller.update()."""
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 @@
setup(
name='raincloudy',
packages=['raincloudy'],
version='0.0.1',
version='0.0.2',
description='A Python library to communicate with Melnor' +
' RainCloud Smart Garden Watering Irrigation Timer' +
' (https://wwww.melnor.com/)',
Expand Down

0 comments on commit 7056929

Please sign in to comment.