mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-11 05:41:52 +01:00
Add category for system channel type 'power'; Changed category for system channe type 'low-battery' (#2069)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
parent
fcaf251bd0
commit
88253c8676
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user