pylint fix

pull/388/head
Stefan Jonasson 2015-09-17 08:35:18 +02:00
parent e68cc83e64
commit 1a00d4a095
1 changed files with 2 additions and 2 deletions

View File

@ -32,13 +32,13 @@ def trigger(hass, config, action):
return False
hours, minutes, seconds = after.hour, after.minute, after.second
elif CONF_HOURS in config or CONF_MINUTES in config \
or CONF_SECONDS in config:
or CONF_SECONDS in config:
hours = convert(config.get(CONF_HOURS), int)
minutes = convert(config.get(CONF_MINUTES), int)
seconds = convert(config.get(CONF_SECONDS), int)
else:
_LOGGER.error('One of %s, %s, %s OR %s needs to be specified',
CONF_HOURS, CONF_MINUTES, CONF_SECONDS, CONF_AFTER)
CONF_HOURS, CONF_MINUTES, CONF_SECONDS, CONF_AFTER)
return False
def time_automation_listener(now):