From 403b9cbe3e5e4f86f9463d6053c771e129870d4e Mon Sep 17 00:00:00 2001 From: magnusknutas Date: Wed, 27 Jan 2016 17:37:15 +0100 Subject: [PATCH] And with template support --- homeassistant/components/logbook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/logbook.py b/homeassistant/components/logbook.py index 6811d1f6917..7fb25b36ba0 100644 --- a/homeassistant/components/logbook.py +++ b/homeassistant/components/logbook.py @@ -18,6 +18,7 @@ from homeassistant.const import ( import homeassistant.util.dt as dt_util from homeassistant.components import recorder, sun from homeassistant.helpers.entity import split_entity_id +from homeassistant.util import template DOMAIN = "logbook" DEPENDENCIES = ['recorder', 'http'] @@ -74,7 +75,7 @@ def setup(hass, config): if message is None: return - + message = template.render(hass, message) notify_service.send_message(message) service = LogbookService(hass, config.get(ATTR_NAME, None))