mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
[YAML thing provider] Handles properly channels with group (#5181)
Fix openhab/openhab-webui#3562 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
+3
-4
@@ -492,10 +492,9 @@ public class YamlThingProvider extends AbstractProvider<Thing>
|
||||
if (channel.getChannelTypeUID() != null) {
|
||||
// We create again the user defined channel because channel type was potentially not yet
|
||||
// in the registry when the channel was initially created
|
||||
newChannel = createChannel(target.getUID(), channel.getUID().getIdWithoutGroup(),
|
||||
channel.getChannelTypeUID(), channel.getKind(), channel.getAcceptedItemType(),
|
||||
channel.getLabel(), channel.getDescription(), channel.getAutoUpdatePolicy(),
|
||||
channel.getConfiguration(), false);
|
||||
newChannel = createChannel(target.getUID(), channel.getUID().getId(), channel.getChannelTypeUID(),
|
||||
channel.getKind(), channel.getAcceptedItemType(), channel.getLabel(),
|
||||
channel.getDescription(), channel.getAutoUpdatePolicy(), channel.getConfiguration(), false);
|
||||
}
|
||||
channelsToAdd.add(newChannel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user