From 117f3d9741be71b4955a2a289d2aa3b8cb90bcf3 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Mon, 21 Feb 2022 20:01:30 +0100 Subject: [PATCH] Fix light sensor rounding --- .../accessories/types/lightsensor/lightsensor.component.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/app/core/accessories/types/lightsensor/lightsensor.component.html b/ui/src/app/core/accessories/types/lightsensor/lightsensor.component.html index 4671d8a81..d08b79ec7 100644 --- a/ui/src/app/core/accessories/types/lightsensor/lightsensor.component.html +++ b/ui/src/app/core/accessories/types/lightsensor/lightsensor.component.html @@ -2,6 +2,7 @@
{{ service.customName || service.serviceName }}
-
{{ service.values.CurrentAmbientLightLevel }} lux
+
{{ service.values.CurrentAmbientLightLevel | number: '0.1-1' }} lux
+
{{ service.values.CurrentAmbientLightLevel | number: '1.0-0' }} lux
\ No newline at end of file