1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-14 14:48:18 +00:00

Suggested fix for empty domain

Signed-off-by: delphi <cpp.create@gmail.com>
This commit is contained in:
delphi 2019-05-25 20:29:28 +03:00
parent df50b95e5a
commit 8a0ebb68ef
No known key found for this signature in database
GPG Key ID: 6B4007767291E9C1
2 changed files with 5 additions and 0 deletions

View File

@ -452,6 +452,8 @@ def validate_config(config):
# Ensure conf is a list
if not isinstance(conf, list) and conf:
result[domain] = conf = [conf]
elif not conf:
result[domain] = conf = []
for i, p_config in enumerate(conf):
path = [domain, i]

View File

@ -238,3 +238,6 @@ interval:
interval: 5s
then:
- logger.log: "Interval Run"
display: