From 46e11b6bf027b31d4c23e86d226158ebc5359378 Mon Sep 17 00:00:00 2001 From: lolodomo Date: Fri, 24 Apr 2020 17:09:23 +0200 Subject: [PATCH] [hue] Remove older discovery results from the current bridge only (#7461) Fix #7451 Signed-off-by: Laurent Garnier --- .../hue/internal/discovery/HueLightDiscoveryService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/HueLightDiscoveryService.java b/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/HueLightDiscoveryService.java index b2edab9984c61..42d9ea038826c 100644 --- a/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/HueLightDiscoveryService.java +++ b/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/discovery/HueLightDiscoveryService.java @@ -40,12 +40,12 @@ import org.openhab.binding.hue.internal.handler.HueLightHandler; import org.openhab.binding.hue.internal.handler.LightStatusListener; import org.openhab.binding.hue.internal.handler.SensorStatusListener; +import org.openhab.binding.hue.internal.handler.sensors.ClipHandler; import org.openhab.binding.hue.internal.handler.sensors.DimmerSwitchHandler; import org.openhab.binding.hue.internal.handler.sensors.LightLevelHandler; import org.openhab.binding.hue.internal.handler.sensors.PresenceHandler; import org.openhab.binding.hue.internal.handler.sensors.TapSwitchHandler; import org.openhab.binding.hue.internal.handler.sensors.TemperatureHandler; -import org.openhab.binding.hue.internal.handler.sensors.ClipHandler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -137,7 +137,7 @@ public void startScan() { @Override protected synchronized void stopScan() { super.stopScan(); - removeOlderResults(getTimestampOfLastScan()); + removeOlderResults(getTimestampOfLastScan(), hueBridgeHandler.getThing().getUID()); } @Override