mirror of
https://github.com/esphome/esphome.git
synced 2024-12-26 23:41:45 +01:00
Lint
This commit is contained in:
parent
dc4c1bc225
commit
e90829eef2
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ def validate_cron_keys(value):
|
|||
value = {x: value[x] for x in value if x != CONF_CRON}
|
||||
value.update(cron_)
|
||||
return value
|
||||
elif CONF_AT in value:
|
||||
if CONF_AT in value:
|
||||
for key in value.keys():
|
||||
if key in CRON_KEYS:
|
||||
raise vol.Invalid("Cannot use option {} when at: is specified.".format(key))
|
||||
|
|
Loading…
Reference in a new issue