mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
Added proposed changes
Signed-off-by: delphi <cpp.create@gmail.com>
This commit is contained in:
parent
8a0ebb68ef
commit
360ed22ccb
@ -450,10 +450,10 @@ def validate_config(config):
|
|||||||
result.remove_output_path([domain], domain)
|
result.remove_output_path([domain], domain)
|
||||||
|
|
||||||
# Ensure conf is a list
|
# Ensure conf is a list
|
||||||
if not isinstance(conf, list) and conf:
|
if not conf:
|
||||||
result[domain] = conf = [conf]
|
|
||||||
elif not conf:
|
|
||||||
result[domain] = conf = []
|
result[domain] = conf = []
|
||||||
|
elif not isinstance(conf, list):
|
||||||
|
result[domain] = conf = [conf]
|
||||||
|
|
||||||
for i, p_config in enumerate(conf):
|
for i, p_config in enumerate(conf):
|
||||||
path = [domain, i]
|
path = [domain, i]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user