1
0
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:
delphi 2019-05-26 01:03:55 +03:00
parent 8a0ebb68ef
commit 360ed22ccb
No known key found for this signature in database
GPG Key ID: 6B4007767291E9C1

View File

@ -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]