From d12ffda8b03a14453e960df771ede8619ee9c334 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 25 Jan 2026 12:18:41 -0600 Subject: [PATCH] show unit --- lib/towerops_web/live/device_live/show.html.heex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/towerops_web/live/device_live/show.html.heex b/lib/towerops_web/live/device_live/show.html.heex index 55826d14..065084d2 100644 --- a/lib/towerops_web/live/device_live/show.html.heex +++ b/lib/towerops_web/live/device_live/show.html.heex @@ -725,6 +725,9 @@
<%= 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 %>