Tests for time and a fix for wrong access of _LOGGER

This commit is contained in:
magnusknutas 2016-01-26 21:11:30 +01:00
parent 2382dffbf4
commit d4b444823c
2 changed files with 58 additions and 1 deletions

View file

@ -71,7 +71,7 @@ def if_action(hass, config):
weekday = config.get(CONF_WEEKDAY)
if before is None and after is None and weekday is None:
logging.getLogger(__name__).error(
_LOGGER.error(
"Missing if-condition configuration key %s, %s or %s",
CONF_BEFORE, CONF_AFTER, CONF_WEEKDAY)
return None