Remove unnecessary assignment of Template.hass from slack (#123688)

This commit is contained in:
Erik Montnemery 2024-08-12 15:51:26 +02:00 committed by GitHub
parent 533e383d5d
commit efa3f228a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -291,7 +291,6 @@ class SlackNotificationService(BaseNotificationService):
if ATTR_FILE not in data:
if ATTR_BLOCKS_TEMPLATE in data:
value = cv.template_complex(data[ATTR_BLOCKS_TEMPLATE])
template.attach(self._hass, value)
blocks = template.render_complex(value)
elif ATTR_BLOCKS in data:
blocks = data[ATTR_BLOCKS]