Skip to content

Commit

Permalink
Removed references to not existing category (openhab#1915)
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
GitOrigin-RevId: e909a81
  • Loading branch information
cweitkamp authored and splatch committed Jul 11, 2023
1 parent 495e053 commit a706531
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<item-type>Dimmer</item-type>
<label>Dimmer</label>
<description>The dimmer channel allows to control the brightness.</description>
<category>DimmableLight</category>
<category>Light</category>
<autoUpdatePolicy>recommend</autoUpdatePolicy>
</channel-type>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public class DefaultSystemChannelTypeProvider implements ChannelTypeProvider {
*/
public static final ChannelType SYSTEM_BRIGHTNESS = ChannelTypeBuilder
.state(new ChannelTypeUID(BINDING_ID, "brightness"), "Brightness", "Dimmer")
.withDescription("Controls the brightness and switches the light on and off").withCategory("DimmableLight")
.withDescription("Controls the brightness and switches the light on and off").withCategory("Light")
.withStateDescriptionFragment(StateDescriptionFragmentBuilder.create().withMinimum(BigDecimal.ZERO)
.withMaximum(new BigDecimal(100)).withPattern("%d %%").build())
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
* resource without a state postfix.
* If a specific resource for a state is available, it will be used. If not, the default icon without a state postfix is
* used. If the state is a decimal number between 0 and 100, the implementation will look for a resource with the next
* smaller state postfix available. Example: For category "DimmableLight" and state 84, it will check for the resources
* dimmablelight-82.png, dimmablelight-81.png, dimmablelight-80.png and return the first one it can find.
* smaller state postfix available. Example: For category "Light" and state 84, it will check for the resources
* light-82.png, light-81.png, light-80.png and return the first one it can find.
*
* @author Kai Kreuzer - Initial contribution
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ public void beforeEach() throws Exception {
.state(new ChannelTypeUID("hue:color"), "Color", CoreItemFactory.COLOR).withCategory("ColorLight")
.build();
final ChannelType channelType5 = ChannelTypeBuilder
.state(new ChannelTypeUID("hue:brightness"), "Brightness", CoreItemFactory.DIMMER)
.withCategory("DimmableLight").build();
.state(new ChannelTypeUID("hue:brightness"), "Brightness", CoreItemFactory.DIMMER).withCategory("Light")
.build();
final ChannelType channelType6 = ChannelTypeBuilder
.state(new ChannelTypeUID("hue:switch"), "Switch", CoreItemFactory.SWITCH).withCategory("Light")
.build();
Expand Down

0 comments on commit a706531

Please sign in to comment.