From 69dbe01295c15f2d9def3278b78ee7708652fcc6 Mon Sep 17 00:00:00 2001 From: Christoph Weitkamp Date: Mon, 4 Jan 2021 16:27:21 +0100 Subject: [PATCH] Add category for system channel type 'power'; Changed category for system channe type 'low-battery' Signed-off-by: Christoph Weitkamp --- .../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 292cf2fb9dd..8e402e651be 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 @@ -77,7 +77,7 @@ public class DefaultSystemChannelTypeProvider implements ChannelTypeProvider { * on (low battery) and off (battery ok). */ public static final ChannelType SYSTEM_CHANNEL_LOW_BATTERY = ChannelTypeBuilder - .state(new ChannelTypeUID(BINDING_ID, "low-battery"), "Low Battery", "Switch").withCategory("Battery") + .state(new ChannelTypeUID(BINDING_ID, "low-battery"), "Low Battery", "Switch").withCategory("LowBattery") .withStateDescriptionFragment(StateDescriptionFragmentBuilder.create().withReadOnly(true).build()).build(); /** @@ -135,7 +135,7 @@ public class DefaultSystemChannelTypeProvider implements ChannelTypeProvider { */ public static final ChannelType SYSTEM_POWER = ChannelTypeBuilder .state(new ChannelTypeUID(BINDING_ID, "power"), "Power", "Switch") - .withDescription("Device is operable when channel has state ON").build(); + .withDescription("Device is operable when channel has state ON").withCategory("Switch").build(); /** * Location: default system wide {@link ChannelType} which displays a location