pylint fix
parent
e68cc83e64
commit
1a00d4a095
|
@ -32,13 +32,13 @@ def trigger(hass, config, action):
|
||||||
return False
|
return False
|
||||||
hours, minutes, seconds = after.hour, after.minute, after.second
|
hours, minutes, seconds = after.hour, after.minute, after.second
|
||||||
elif CONF_HOURS in config or CONF_MINUTES in config \
|
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)
|
hours = convert(config.get(CONF_HOURS), int)
|
||||||
minutes = convert(config.get(CONF_MINUTES), int)
|
minutes = convert(config.get(CONF_MINUTES), int)
|
||||||
seconds = convert(config.get(CONF_SECONDS), int)
|
seconds = convert(config.get(CONF_SECONDS), int)
|
||||||
else:
|
else:
|
||||||
_LOGGER.error('One of %s, %s, %s OR %s needs to be specified',
|
_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
|
return False
|
||||||
|
|
||||||
def time_automation_listener(now):
|
def time_automation_listener(now):
|
||||||
|
|
Loading…
Reference in New Issue