show unit

This commit is contained in:
Graham McIntire 2026-01-25 12:18:41 -06:00
parent 8158042220
commit d12ffda8b0
No known key found for this signature in database

View file

@ -725,6 +725,9 @@
<dd class="text-sm font-medium text-gray-900 dark:text-white">
<%= if sensor.latest_reading do %>
{trunc(sensor.latest_reading.value)}
<%= if sensor.sensor_unit && sensor.sensor_unit != "" do %>
{sensor.sensor_unit}
<% end %>
<% else %>
N/A
<% end %>