Configure zone on panel even if the channel is not yet linked (#13380)

Signed-off-by: Haavar Valeur <haavar@haavar.com>
This commit is contained in:
Haavar Valeur 2022-09-17 08:02:09 -07:00 committed by GitHub
parent 6805f8461e
commit 7dfb963f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 39 additions and 43 deletions

View File

@ -328,8 +328,7 @@ public class KonnectedHandler extends BaseThingHandler {
payload.setDiscovery(config.discovery);
this.getThing().getChannels().forEach(channel -> {
// ChannelUID channelId = channel.getUID();
if (isLinked(channel.getUID())) {
// adds linked channels to list based on last value of Channel ID
// adds channels to list based on last value of Channel ID
// which is set to a number
// get the zone number in integer form
ZoneConfiguration zoneConfig = channel.getConfiguration().as(ZoneConfiguration.class);
@ -373,9 +372,6 @@ public class KonnectedHandler extends BaseThingHandler {
logger.debug("Channel {} is of type {} which is not supported by the konnected binding", channel,
channelType);
}
} else {
logger.debug("The Channel {} is not linked to an item", channel.getUID());
}
});
// Create Json to Send to Konnected Module