} else { ChannelType channelType = channelTypeRegistry.getChannelType(channel.getChannelTypeUID()); if (channelType != null && channelType.getAutoUpdatePolicy() != null) { policy = channelType.getAutoUpdatePolicy();
label = resolvedChannelType.getLabel(); autoUpdatePolicy = resolvedChannelType.getAutoUpdatePolicy(); this.applyDefaultConfiguration(configuration, resolvedChannelType); } else { String _id = it.getId(); ChannelUID _channelUID = new ChannelUID(thingTypeUID, thingUID, _id); Channel _build = ChannelBuilder.create(_channelUID, channelType.getItemType()).withType(it.getChannelTypeUID()).withAutoUpdatePolicy(channelType.getAutoUpdatePolicy()).build(); channels.add(_build); } else {
.isAdvanced(channelType.isAdvanced()).withCategory(channelType.getCategory()) .withConfigDescriptionURI(channelType.getConfigDescriptionURI()).withTags(channelType.getTags()) .withStateDescription(state).withAutoUpdatePolicy(channelType.getAutoUpdatePolicy()); if (description != null) { stateBuilder.withDescription(description); channelType.getCategory(), channelType.getTags(), channelType.getState(), channelType.getEvent(), channelType.getConfigDescriptionURI(), channelType.getAutoUpdatePolicy());
.withAutoUpdatePolicy(channelType.getAutoUpdatePolicy());