From 453fe3e340c093ef9c54f6757a7ad8afa825234e Mon Sep 17 00:00:00 2001 From: SNoof85 Date: Fri, 12 Nov 2021 08:42:00 +0100 Subject: [PATCH] Update flume template binary_sensor example (#20271) Co-authored-by: Franck Nijhof --- source/_integrations/flume.markdown | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/source/_integrations/flume.markdown b/source/_integrations/flume.markdown index 4dd0ba32c95..8c82bd82711 100644 --- a/source/_integrations/flume.markdown +++ b/source/_integrations/flume.markdown @@ -35,13 +35,11 @@ The following YAML creates a binary sensor. This requires the default sensor to ```yaml # Example configuration.yaml entry -binary_sensor: - - platform: template - sensors: - flume_status: - friendly_name: "Flume Flow Status" - value_template: >- - {{ states.sensor.flume_sensor.state != "0" }} +template: + - binary_sensor: + - name: "Flume Flow Status" + state: >- + {{ states('sensor.flume_sensor') != "0" }} ``` {% endraw %}