Running periodic tasks

This commit is contained in:
magnusknutas 2016-01-26 10:28:31 +01:00
parent e72f61ce73
commit 13fbefcdf8
3 changed files with 23 additions and 2 deletions

View file

@ -35,8 +35,8 @@ def trigger(hass, config, action):
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)
minutes = config.get(CONF_MINUTES)
seconds = config.get(CONF_SECONDS)
else:
_LOGGER.error('One of %s, %s, %s OR %s needs to be specified',
CONF_HOURS, CONF_MINUTES, CONF_SECONDS, CONF_AFTER)