mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Remove unnecessary assignment of Template.hass from slack (#123688)
This commit is contained in:
parent
533e383d5d
commit
efa3f228a5
@ -291,7 +291,6 @@ class SlackNotificationService(BaseNotificationService):
|
|||||||
if ATTR_FILE not in data:
|
if ATTR_FILE not in data:
|
||||||
if ATTR_BLOCKS_TEMPLATE in data:
|
if ATTR_BLOCKS_TEMPLATE in data:
|
||||||
value = cv.template_complex(data[ATTR_BLOCKS_TEMPLATE])
|
value = cv.template_complex(data[ATTR_BLOCKS_TEMPLATE])
|
||||||
template.attach(self._hass, value)
|
|
||||||
blocks = template.render_complex(value)
|
blocks = template.render_complex(value)
|
||||||
elif ATTR_BLOCKS in data:
|
elif ATTR_BLOCKS in data:
|
||||||
blocks = data[ATTR_BLOCKS]
|
blocks = data[ATTR_BLOCKS]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user