diff --git a/homeassistant/components/automation/time.py b/homeassistant/components/automation/time.py index 8679cac8667..17b0c989f16 100644 --- a/homeassistant/components/automation/time.py +++ b/homeassistant/components/automation/time.py @@ -31,8 +31,8 @@ def trigger(hass, config, action): 'Received invalid after value: %s', config[CONF_AFTER]) 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: + elif (CONF_HOURS in config or CONF_MINUTES 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)