Skip to content

Commit

Permalink
Reduce debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sebr committed Feb 18, 2020
1 parent 6f9158e commit 7b281d0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions custom_components/bhyve/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,12 @@ def _setup(self, device):
self._initial_programs = None

def _set_watering_started(self, timestamp):
_LOGGER.debug("Timestamp is {}".format(timestamp))
if timestamp is not None:
self._attrs[ATTR_STARTED_WATERING_AT] = orbit_time_to_local_time(timestamp)
else:
self._attrs[ATTR_STARTED_WATERING_AT] = None

def _set_watering_program(self, watering_program):
_LOGGER.debug("Watering program {}".format(watering_program))
if watering_program is None:
self._attrs[ATTR_WATERING_PROGRAM] = None
return
Expand Down

0 comments on commit 7b281d0

Please sign in to comment.