diff --git a/templates/device_detail.html b/templates/device_detail.html index 85069a7..5be7dfa 100644 --- a/templates/device_detail.html +++ b/templates/device_detail.html @@ -4,7 +4,30 @@ {% block content %}
| Slots | @@ -29,23 +52,21 @@|
| HA Entity | -{{ device.ha_entity_id }} |
-
| HA Live % | - {% if ha_live_pct < 20 %} - ⚠ {{ ha_live_pct }}% + {% if ha_live_pct is not none %} + {% if ha_live_pct < 20 %} + ⚠ {{ ha_live_pct }}% + {% else %} + {{ ha_live_pct }}% + {% endif %} {% else %} - {{ ha_live_pct }}% + — {% endif %} |