mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Suggested fix for empty domain (#555)
* Suggested fix for empty domain Signed-off-by: delphi <cpp.create@gmail.com> * Added proposed changes Signed-off-by: delphi <cpp.create@gmail.com>
This commit is contained in:
parent
df50b95e5a
commit
9ed06444e1
2 changed files with 6 additions and 1 deletions
|
@ -450,7 +450,9 @@ def validate_config(config):
|
|||
result.remove_output_path([domain], domain)
|
||||
|
||||
# Ensure conf is a list
|
||||
if not isinstance(conf, list) and conf:
|
||||
if not conf:
|
||||
result[domain] = conf = []
|
||||
elif not isinstance(conf, list):
|
||||
result[domain] = conf = [conf]
|
||||
|
||||
for i, p_config in enumerate(conf):
|
||||
|
|
|
@ -238,3 +238,6 @@ interval:
|
|||
interval: 5s
|
||||
then:
|
||||
- logger.log: "Interval Run"
|
||||
|
||||
display:
|
||||
|
||||
|
|
Loading…
Reference in a new issue