From 17eab6474405172685d53d99450fb0d7a70243d2 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 23 Jul 2017 21:39:04 -0700 Subject: [PATCH] Fix syntax --- source/_components/feedreader.markdown | 9 +++++---- source/_components/xiaomi.markdown | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/source/_components/feedreader.markdown b/source/_components/feedreader.markdown index 6fd6bfedd45..15b72129655 100644 --- a/source/_components/feedreader.markdown +++ b/source/_components/feedreader.markdown @@ -52,14 +52,13 @@ automation: service: persistent_notification.create data_template: title: "New HA Podcast available" - message: {% raw %}"New Podcast available - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}" - notification_id: "{{ trigger.event.data.title }}"{% endraw %} + message: {% raw %}"New Podcast available - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"{% endraw %} + notification_id: {% raw %}"{{ trigger.event.data.title }}"{% endraw %} ``` -*Any field under the `` tag in the feed can be used for example `trigger.event.data.content` will get the body of the feed entry. +Any field under the `` tag in the feed can be used for example `trigger.event.data.content` will get the body of the feed entry. For more advanced use cases, a custom component registering to the `feedreader` event type could be used instead: -For a drop in packaged complete example of Feedreader, you can use the [PodCast notifier](https://github.com/CCOSTAN/Home-AssistantConfig/blob/master/packages/hasspodcast.yaml). ```python EVENT_FEEDREADER = "feedreader" @@ -67,3 +66,5 @@ hass.bus.listen(EVENT_FEEDREADER, event_listener) ``` To get started developing custom components, please refer to the [developers](/developers) documentation + +For a drop in packaged complete example of Feedreader, you can use the [PodCast notifier](https://github.com/CCOSTAN/Home-AssistantConfig/blob/master/packages/hasspodcast.yaml). diff --git a/source/_components/xiaomi.markdown b/source/_components/xiaomi.markdown index 891567b7509..09e41b74706 100644 --- a/source/_components/xiaomi.markdown +++ b/source/_components/xiaomi.markdown @@ -1,6 +1,6 @@ --- layout: page -title: "Xiaomi Gateway” +title: "Xiaomi Gateway" description: "Instructions how to integrate your Xiaomi Gateway within Home Assistant." date: 2017-07-21 16:34 sidebar: true