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:
parent
6805f8461e
commit
7dfb963f92
@ -328,8 +328,7 @@ public class KonnectedHandler extends BaseThingHandler {
|
|||||||
payload.setDiscovery(config.discovery);
|
payload.setDiscovery(config.discovery);
|
||||||
this.getThing().getChannels().forEach(channel -> {
|
this.getThing().getChannels().forEach(channel -> {
|
||||||
// ChannelUID channelId = channel.getUID();
|
// ChannelUID channelId = channel.getUID();
|
||||||
if (isLinked(channel.getUID())) {
|
// adds channels to list based on last value of Channel ID
|
||||||
// adds linked channels to list based on last value of Channel ID
|
|
||||||
// which is set to a number
|
// which is set to a number
|
||||||
// get the zone number in integer form
|
// get the zone number in integer form
|
||||||
ZoneConfiguration zoneConfig = channel.getConfiguration().as(ZoneConfiguration.class);
|
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,
|
logger.debug("Channel {} is of type {} which is not supported by the konnected binding", channel,
|
||||||
channelType);
|
channelType);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
logger.debug("The Channel {} is not linked to an item", channel.getUID());
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
// Create Json to Send to Konnected Module
|
// Create Json to Send to Konnected Module
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user