Skip to content

Commit

Permalink
lgtm
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmartin committed Sep 6, 2023
1 parent 7cee814 commit 528beeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/sensor/powerwall/powerwall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
{% set s = state_attr('binary_sensor.motion_powerwall_load_spike','ago') %}
{% if s|lower != 'none' and s|lower != 'unavailable' and s|lower != 'unknown' and s|lower != 'none' %}
{{ s }}
{% else %}{{- 'none' -}}{% endif %}
{% else %}{{- None -}}{% endif %}
- platform: statistics
name: motion_powerwall_load_spike_ago_total_1d
Expand Down Expand Up @@ -256,7 +256,7 @@
{% set s = state_attr('binary_sensor.motion_powerwall_load_spike','energy') %}
{% if s|lower != 'none' and s|lower != 'unavailable' and s|lower != 'unknown' and s|lower != 'none' %}
{{ s }}
{% else %}{{- 'none' -}}{% endif %}
{% else %}{{- None -}}{% endif %}
- platform: statistics
name: motion_powerwall_load_spike_energy_total_1d
Expand Down

0 comments on commit 528beeb

Please sign in to comment.