Units: Added support for Candela (cd) (#71696)

Field Config: Add new unit cd (Candela)
This commit is contained in:
Frank Villaro-Dixon 2023-07-19 10:55:28 +02:00 committed by GitHub
parent b1555c9595
commit 3b257b151b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,7 @@ export const getCategories = (): ValueFormatCategory[] => [
{ name: 'Percent (0.0-1.0)', id: 'percentunit', fn: toPercentUnit },
{ name: 'Humidity (%H)', id: 'humidity', fn: toFixedUnit('%H') },
{ name: 'Decibel', id: 'dB', fn: toFixedUnit('dB') },
{ name: 'Candela (cd)', id: 'candela', fn: SIPrefix('cd') },
{ name: 'Hexadecimal (0x)', id: 'hex0x', fn: toHex0x },
{ name: 'Hexadecimal', id: 'hex', fn: toHex },
{ name: 'Scientific notation', id: 'sci', fn: sci },