Skip to content

Commit

Permalink
Remove explicit templating of logbook service data (#128902)
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Oct 21, 2024
1 parent 13a448e commit d2e7b61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions homeassistant/components/logbook/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
LOG_MESSAGE_SCHEMA = vol.Schema(
{
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_ENTITY_ID): cv.entity_id,
}
Expand Down Expand Up @@ -112,7 +112,6 @@ def log_message(service: ServiceCall) -> None:
# away so we use the "logbook" domain
domain = DOMAIN

message = message.async_render(parse_result=False)
async_log_entry(hass, name, message, domain, entity_id, service.context)

frontend.async_register_built_in_panel(
Expand Down

0 comments on commit d2e7b61

Please sign in to comment.