From ec7d5f1ff21ecfe6386bd2cbb32b33b25d76df1d Mon Sep 17 00:00:00 2001 From: dcmartin Date: Thu, 2 Nov 2023 13:07:01 -0700 Subject: [PATCH] lgtm --- homeassistant/binary_sensor/powerwall/powerwall.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/binary_sensor/powerwall/powerwall.yaml b/homeassistant/binary_sensor/powerwall/powerwall.yaml index c36d8160e..ac7a066a4 100644 --- a/homeassistant/binary_sensor/powerwall/powerwall.yaml +++ b/homeassistant/binary_sensor/powerwall/powerwall.yaml @@ -120,6 +120,4 @@ value_template: >- {% set zero = state_attr('binary_sensor.motion_powerwall_self_sufficient','zero') %} {% set s = state_attr('binary_sensor.motion_powerwall_self_sufficient','export') %} - {% if s|lower != 'none' and s is number %} - {{ s|float(-1)|round >= zero|float(0) }} - {% else %}unknown{% endif %} + {{ s is not number or s|float(-1)|round >= zero|float(0) }}