This commit is contained in:
Otto Winter 2019-04-08 22:27:47 +02:00
parent dc4c1bc225
commit e90829eef2
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

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