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:
parent
df50b95e5a
commit
8a0ebb68ef
@ -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]
|
||||
|
@ -238,3 +238,6 @@ interval:
|
||||
interval: 5s
|
||||
then:
|
||||
- logger.log: "Interval Run"
|
||||
|
||||
display:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user