diff --git a/homeassistant/components/automation/time.py b/homeassistant/components/automation/time.py index 0f0e2fe38dd..9c60b766c6f 100644 --- a/homeassistant/components/automation/time.py +++ b/homeassistant/components/automation/time.py @@ -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):