mirror of
https://github.com/esphome/esphome.git
synced 2025-03-14 14:48:18 +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)
|
||||
|
||||
# Ensure conf is a list
|
||||
if not isinstance(conf, list) and conf:
|
||||
result[domain] = conf = [conf]
|
||||
elif not conf:
|
||||
if not conf:
|
||||
result[domain] = conf = []
|
||||
elif not isinstance(conf, list):
|
||||
result[domain] = conf = [conf]
|
||||
|
||||
for i, p_config in enumerate(conf):
|
||||
path = [domain, i]
|
||||
|
Loading…
x
Reference in New Issue
Block a user