Skip to content

Commit

Permalink
Remove not needed log warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MagnusKnutas committed Jan 26, 2016
1 parent 0a4e857 commit 2c3a6e7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions homeassistant/components/automation/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,6 @@ def trigger(hass, config, action):
hours = config.get(CONF_HOURS)
minutes = config.get(CONF_MINUTES)
seconds = config.get(CONF_SECONDS)
if isinstance(minutes, str) and minutes.startswith('/') \
and not convert(minutes.lstrip('/'), int) % 60 == 0:
_LOGGER.warning('Periodic minutes should be divisible with 60'
'there will be an offset every hour')
if isinstance(seconds, str) and seconds.startswith('/') \
and not convert(seconds.lstrip('/'), int) % 60 == 0:
_LOGGER.warning('Periodic seconds should be divisible with 60'
'there will be an offset every minute')
if isinstance(hours, str) and hours.startswith('/') \
and not convert(hours.lstrip('/'), int) % 24 == 0:
_LOGGER.warning('Periodic hours should be divisible with 24'
'there will be an offset every midnight')
else:
_LOGGER.error('One of %s, %s, %s OR %s needs to be specified',
CONF_HOURS, CONF_MINUTES, CONF_SECONDS, CONF_AFTER)
Expand Down

0 comments on commit 2c3a6e7

Please sign in to comment.