mirror of
https://github.com/home-assistant/core.git
synced 2025-08-27 16:31:38 +02:00
Adjust persistent notification integration
This commit is contained in:
@@ -119,7 +119,7 @@ async def async_setup(hass: HomeAssistant, config: dict) -> bool:
|
|||||||
if title is not None:
|
if title is not None:
|
||||||
try:
|
try:
|
||||||
title.hass = hass
|
title.hass = hass
|
||||||
title = title.async_render()
|
title = title.async_render(parse_result=False)
|
||||||
except TemplateError as ex:
|
except TemplateError as ex:
|
||||||
_LOGGER.error("Error rendering title %s: %s", title, ex)
|
_LOGGER.error("Error rendering title %s: %s", title, ex)
|
||||||
title = title.template
|
title = title.template
|
||||||
@@ -128,7 +128,7 @@ async def async_setup(hass: HomeAssistant, config: dict) -> bool:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
message.hass = hass
|
message.hass = hass
|
||||||
message = message.async_render()
|
message = message.async_render(parse_result=False)
|
||||||
except TemplateError as ex:
|
except TemplateError as ex:
|
||||||
_LOGGER.error("Error rendering message %s: %s", message, ex)
|
_LOGGER.error("Error rendering message %s: %s", message, ex)
|
||||||
message = message.template
|
message = message.template
|
||||||
|
Reference in New Issue
Block a user