Skip to content

Commit

Permalink
lgtm
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmartin committed Nov 2, 2023
1 parent 565dbf5 commit ec7d5f1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions homeassistant/binary_sensor/powerwall/powerwall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}

0 comments on commit ec7d5f1

Please sign in to comment.