From 7e1eb5153f2c50446d453ac612fe7e9e43b91d9b Mon Sep 17 00:00:00 2001 From: DavidFW1960 <36390762+DavidFW1960@users.noreply.github.com> Date: Sun, 24 Nov 2019 17:23:46 +1100 Subject: [PATCH] fix template error --- weather.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather.yaml b/weather.yaml index 15f888a..173c736 100644 --- a/weather.yaml +++ b/weather.yaml @@ -68,7 +68,7 @@ sensor: {%- elif states('sensor.bom_gosford_uv_alert_1') == '##' -%} {% set val = 'No Data' %} {%- elif states('sensor.bom_gosford_uv_alert_1') != 'n/a' -%} - {% set val = states('sensor.bom_uv_alert_1').split('[')[1].split(']')[0] %} + {% set val = states('sensor.bom_gosford_uv_alert_1').split('[')[1].split(']')[0] %} {%- else -%} {%- set val = 'No Data' -%} {%- endif -%}