.state(channelTypeUID, label == null ? defaultLabel : label, channelType.getItemType()) .isAdvanced(channelType.isAdvanced()).withCategory(channelType.getCategory()) .withConfigDescriptionURI(channelType.getConfigDescriptionURI()).withTags(channelType.getTags())
ChannelType channelType = null; if (cKind == ChannelKind.STATE) { channelType = ChannelTypeBuilder.state(channelTypeUID, label, itemType).isAdvanced(advanced) .withDescription(description).withCategory(category).withTags(tags) .withConfigDescriptionURI(configDescriptionURI).withStateDescription(stateDescription)