Skip to content

Commit

Permalink
Makes lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
tchellomello committed Jun 16, 2018
1 parent 1e7ae48 commit 3dbb928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit 3dbb928

Please sign in to comment.