---
substitutions:
  name: original

wifi: !include
  file: includes/broken_included.yaml.txt
  vars:
    name: my_custom_ssid

esphome:
  # should be substituted as 'original',
  # not overwritten by vars in the !include above
  name: ${name}
  name_add_mac_suffix: true
  libraries: !include {file: includes/list.yaml, vars: {var1: Wire}}

esp8266:
  board: !include {file: includes/scalar.yaml, vars: {var1: nodemcu}}
