Open Masterz69 opened 6 months ago
!extend
can't find source too in following case:
package.yaml:
switch:
- platform: template
id: sw_relay_${id}
main.yaml
packages:
package: !include { file: package.yaml, vars: { id: 1 } }
switch:
- id: !extend sw_relay_1
The problem
Using packages to define relays in configuration like
sw_relay_1
etc. by passing${id}
to package. Trying to create package to extend relays with some functions by using!extend
.But discovered - substitutions not parsed while using
!extend
configration.causing
Source for extension of ID 'sw_relay_${id}' was not found. id: !extend sw_relay_${id}
Which version of ESPHome has the issue?
2023.12.7
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
No response
What platform are you using?
ESP8266
Board
No response
Component causing the issue
No response
Example YAML snippet
main file:
relay_base.yaml:
Anything in the logs that might be useful for us?
No response
Additional information
No response