From 444d824a41b9d0e517c35e2736e59ad3aabcbeb8 Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Fri, 12 Jan 2024 09:09:14 +0100 Subject: [PATCH] Fix removal of discovery results (#16232) Signed-off-by: Jacob Laursen --- .../boschindego/internal/discovery/IndegoDiscoveryService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/discovery/IndegoDiscoveryService.java b/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/discovery/IndegoDiscoveryService.java index ecdbcd6b9d0..2056310c728 100644 --- a/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/discovery/IndegoDiscoveryService.java +++ b/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/discovery/IndegoDiscoveryService.java @@ -84,6 +84,6 @@ public class IndegoDiscoveryService extends AbstractThingHandlerDiscoveryService @Override public void dispose() { super.dispose(); - removeOlderResults(Instant.now().getEpochSecond()); + removeOlderResults(Instant.now().toEpochMilli()); } }