From 56f3cb088fcdf64b4b07efddc8fe4fd379ad2372 Mon Sep 17 00:00:00 2001 From: Laurent Garnier Date: Sat, 16 Nov 2024 13:31:28 +0100 Subject: [PATCH] Add unit hint to color-temperature-abs system channel type Discussed in openhab/openhab-addons#17638. Signed-off-by: Laurent Garnier --- .../openhab/core/thing/DefaultSystemChannelTypeProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/DefaultSystemChannelTypeProvider.java b/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/DefaultSystemChannelTypeProvider.java index f68a3aa4058..6c13ff183dd 100644 --- a/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/DefaultSystemChannelTypeProvider.java +++ b/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/DefaultSystemChannelTypeProvider.java @@ -243,8 +243,8 @@ public class DefaultSystemChannelTypeProvider implements ChannelTypeProvider { */ public static final ChannelType SYSTEM_COLOR_TEMPERATURE_ABS = ChannelTypeBuilder .state(SYSTEM_CHANNEL_TYPE_UID_COLOR_TEMPERATURE_ABS, "Color Temperature", "Number:Temperature") - .withDescription("Controls the color temperature of the light in Kelvin").withCategory("ColorLight") - .isAdvanced(true) + .withUnitHint("K").withDescription("Controls the color temperature of the light in Kelvin") + .withCategory("ColorLight").isAdvanced(true) .withStateDescriptionFragment(StateDescriptionFragmentBuilder.create().withMinimum(new BigDecimal(1000)) .withMaximum(new BigDecimal(10000)).withPattern("%.0f K").build()) .withTags(List.of("Control", "ColorTemperature")).build();