Tests for time and a fix for wrong access of _LOGGER
This commit is contained in:
parent
2382dffbf4
commit
d4b444823c
2 changed files with 58 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue