From 9f25507731546d22b035b8102d839cf0123fc752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rouven=20Sch=C3=BCrch?= <803221+ardanedh@users.noreply.github.com> Date: Sun, 24 Oct 2021 21:35:23 +0200 Subject: [PATCH] Fixes #10939: Remove excessive log statements for unknown ApplicationGroups (#11433) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rouven Schürch --- .../internal/lib/structure/devices/impl/DeviceImpl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/lib/structure/devices/impl/DeviceImpl.java b/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/lib/structure/devices/impl/DeviceImpl.java index 5d7f937680807..ccec7c0a566b9 100644 --- a/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/lib/structure/devices/impl/DeviceImpl.java +++ b/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/lib/structure/devices/impl/DeviceImpl.java @@ -278,9 +278,7 @@ public List getGroups() { */ private boolean addGroupToList(Short groupID) { ApplicationGroup group = ApplicationGroup.getGroup(groupID); - if (ApplicationGroup.UNDEFINED.equals(group)) { - logger.warn("Unknown application group with ID '{}' found! Ignoring group", groupID); - } else { + if (!ApplicationGroup.UNDEFINED.equals(group)) { if (!this.groupList.contains(group)) { this.groupList.add(group); }