From be003029b07641f370e43fe5771799fa3a7ce08a Mon Sep 17 00:00:00 2001 From: lolodomo Date: Sun, 17 Nov 2024 08:58:59 +0100 Subject: [PATCH] Add unit hint to color-temperature-abs system channel type (#4451) 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 f68a3aa40..6c13ff183 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();