mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Remove unnecessary assignment of Template.hass from esphome (#123701)
This commit is contained in:
parent
bf55cc605a
commit
6bde80ad65
@ -197,9 +197,9 @@ class ESPHomeManager:
|
||||
if service.data_template:
|
||||
try:
|
||||
data_template = {
|
||||
key: Template(value) for key, value in service.data_template.items()
|
||||
key: Template(value, hass)
|
||||
for key, value in service.data_template.items()
|
||||
}
|
||||
template.attach(hass, data_template)
|
||||
service_data.update(
|
||||
template.render_complex(data_template, service.variables)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user