mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
flake8 fix
This commit is contained in:
parent
47af247d6a
commit
90e2aefd23
@ -31,8 +31,8 @@ def trigger(hass, config, action):
|
|||||||
'Received invalid after value: %s', config[CONF_AFTER])
|
'Received invalid after value: %s', config[CONF_AFTER])
|
||||||
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user