mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 16:37:52 +01:00
Lint
This commit is contained in:
parent
dc4c1bc225
commit
e90829eef2
@ -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 New Issue
Block a user