1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 20:02:22 +01:00
This commit is contained in:
Otto Winter
2019-04-08 22:27:47 +02:00
parent dc4c1bc225
commit e90829eef2

View File

@@ -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))