From a2820d0dc3259cb1ac4c3b56835ee0382bbf9847 Mon Sep 17 00:00:00 2001 From: Alec Rust Date: Sat, 31 Aug 2019 09:28:46 +0100 Subject: [PATCH] Include HA version in update available example (#10257) * Include HA version in update available example * :ambulance: Fix build error --- source/_components/updater.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/_components/updater.markdown b/source/_components/updater.markdown index 052c01e9e5e..1acc1d38544 100644 --- a/source/_components/updater.markdown +++ b/source/_components/updater.markdown @@ -56,6 +56,7 @@ It is possible to report the integrations that you are using to the Home Assista For an added bonus, an automation integration can be created to send a message with a notifier when that state of this component's entity changes. +{% raw %} ```yaml # Example configuration.yaml entry automation: @@ -68,5 +69,6 @@ automation: action: - service: notify.notify data: - message: 'Update for Home Assistant is available.' + message: "Home Assistant {{ state_attr('binary_sensor.updater', 'newest_version') }} is available." ``` +{% endraw %}