mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Remove explicit templating of logbook service data (#128902)
This commit is contained in:
parent
13a448ebfe
commit
d2e7b61eb2
@ -55,7 +55,7 @@ CONFIG_SCHEMA = vol.Schema(
|
|||||||
LOG_MESSAGE_SCHEMA = vol.Schema(
|
LOG_MESSAGE_SCHEMA = vol.Schema(
|
||||||
{
|
{
|
||||||
vol.Required(ATTR_NAME): cv.string,
|
vol.Required(ATTR_NAME): cv.string,
|
||||||
vol.Required(ATTR_MESSAGE): cv.template,
|
vol.Required(ATTR_MESSAGE): cv.string,
|
||||||
vol.Optional(ATTR_DOMAIN): cv.slug,
|
vol.Optional(ATTR_DOMAIN): cv.slug,
|
||||||
vol.Optional(ATTR_ENTITY_ID): cv.entity_id,
|
vol.Optional(ATTR_ENTITY_ID): cv.entity_id,
|
||||||
}
|
}
|
||||||
@ -112,7 +112,6 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
# away so we use the "logbook" domain
|
# away so we use the "logbook" domain
|
||||||
domain = DOMAIN
|
domain = DOMAIN
|
||||||
|
|
||||||
message = message.async_render(parse_result=False)
|
|
||||||
async_log_entry(hass, name, message, domain, entity_id, service.context)
|
async_log_entry(hass, name, message, domain, entity_id, service.context)
|
||||||
|
|
||||||
frontend.async_register_built_in_panel(
|
frontend.async_register_built_in_panel(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user