From e8274850d10ac8a345a5c0a330ed32dfa6ccbb12 Mon Sep 17 00:00:00 2001 From: Adrian Jagielak Date: Thu, 24 Jul 2025 20:59:16 +0200 Subject: [PATCH] Change default 'sensor_lumin' unit from 'Lux' to 'lx' --- futurehome/CHANGELOG.md | 3 ++- futurehome/src/services/sensor_lumin.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/futurehome/CHANGELOG.md b/futurehome/CHANGELOG.md index 1250050..b556444 100644 --- a/futurehome/CHANGELOG.md +++ b/futurehome/CHANGELOG.md @@ -5,8 +5,9 @@ - Set 'battery' entity category to 'diagnostic' to hide it from the main HA view. - Do not expose 'battery' entity twice if it supports both level and low/high binary state. +- Changed the default 'sensor_lumin' unit from 'Lux' to 'lx'. -## 0.1.0 (24.07.2025) +# 0.1.0 (24.07.2025) **Initial stable release** diff --git a/futurehome/src/services/sensor_lumin.ts b/futurehome/src/services/sensor_lumin.ts index 076e529..03da7a7 100644 --- a/futurehome/src/services/sensor_lumin.ts +++ b/futurehome/src/services/sensor_lumin.ts @@ -10,7 +10,7 @@ export function sensor_lumin__components( svc: VinculumPd7Service, ): ServiceComponentsCreationResult | undefined { const device_class = 'illuminance'; - const unit = svc.props?.sup_units?.[0] ?? 'Lux'; + const unit = svc.props?.sup_units?.[0] ?? 'lx'; return { components: {