From 64a9b4192e2aa09d5cc55e71d856561c207de311 Mon Sep 17 00:00:00 2001 From: Andy Lintner Date: Wed, 20 Jul 2016 23:22:01 -0400 Subject: [PATCH] Fix for multiple tags and HomeKit Fixes #1074 Signed-off-by: Andy Lintner --- .../org/openhab/io/homekit/internal/HomekitTaggedItem.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/io/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitTaggedItem.java b/addons/io/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitTaggedItem.java index 7bbbfc5d6a044..81c2132d7ecea 100644 --- a/addons/io/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitTaggedItem.java +++ b/addons/io/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/HomekitTaggedItem.java @@ -45,6 +45,9 @@ public HomekitTaggedItem(Item item, ItemRegistry itemRegistry) { if (homekitDeviceType == null) { homekitCharacteristicType = HomekitCharacteristicType.valueOfTag(tag); } + if (homekitDeviceType != null || homekitCharacteristicType != null) { + break; + } } if (homekitDeviceType != null) { this.id = calculateId(item);