Remove unnecessary assignment of Template.hass from script variables helper (#123712)

This commit is contained in:
Erik Montnemery 2024-08-12 21:51:24 +02:00 committed by GitHub
parent c5e8710889
commit c49a31e0de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,6 @@ class ScriptVariables:
""" """
if self._has_template is None: if self._has_template is None:
self._has_template = template.is_complex(self.variables) self._has_template = template.is_complex(self.variables)
template.attach(hass, self.variables)
if not self._has_template: if not self._has_template:
if render_as_defaults: if render_as_defaults: