From 72c30a660eb0dc257e616cf771c29285d42738c5 Mon Sep 17 00:00:00 2001 From: Benajmin Hahn Date: Tue, 16 Jun 2020 00:37:49 +0200 Subject: [PATCH] Apply correct type for "Color lights" --- .../deconz/internal/discovery/ThingDiscoveryService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/discovery/ThingDiscoveryService.java b/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/discovery/ThingDiscoveryService.java index 998373595ff31..84c9f0cef640b 100644 --- a/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/discovery/ThingDiscoveryService.java +++ b/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/discovery/ThingDiscoveryService.java @@ -139,11 +139,9 @@ private void addLight(String lightID, LightMessage light) { thingTypeUID = THING_TYPE_COLOR_TEMPERATURE_LIGHT; break; case COLOR_DIMMABLE_LIGHT: - thingTypeUID = THING_TYPE_COLOR_LIGHT; - break; case COLOR_LIGHT: - thingTypeUID = (light.ctmin != null) ?THING_TYPE_EXTENDED_COLOR_LIGHT :THING_TYPE_COLOR_LIGHT; - break; + thingTypeUID = THING_TYPE_COLOR_LIGHT; + break; case EXTENDED_COLOR_LIGHT: thingTypeUID = THING_TYPE_EXTENDED_COLOR_LIGHT; break;