Change default 'sensor_lumin' unit from 'Lux' to 'lx'

This commit is contained in:
Adrian Jagielak 2025-07-24 20:59:16 +02:00
parent 8dfd40a5d7
commit e8274850d1
No known key found for this signature in database
GPG Key ID: 0818CF7AF6C62BFB
2 changed files with 3 additions and 2 deletions

View File

@ -5,8 +5,9 @@
- Set 'battery' entity category to 'diagnostic' to hide it from the main HA view. - 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. - 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** **Initial stable release**

View File

@ -10,7 +10,7 @@ export function sensor_lumin__components(
svc: VinculumPd7Service, svc: VinculumPd7Service,
): ServiceComponentsCreationResult | undefined { ): ServiceComponentsCreationResult | undefined {
const device_class = 'illuminance'; const device_class = 'illuminance';
const unit = svc.props?.sup_units?.[0] ?? 'Lux'; const unit = svc.props?.sup_units?.[0] ?? 'lx';
return { return {
components: { components: {