From 2d42e2e135bf6f44e740878720226f4aa7983691 Mon Sep 17 00:00:00 2001 From: J-N-K Date: Wed, 27 Mar 2024 21:03:44 +0100 Subject: [PATCH] [rrd4j] Fix missing service pid (#16569) Signed-off-by: Jan N. Klug --- .../persistence/rrd4j/internal/RRD4jPersistenceService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.persistence.rrd4j/src/main/java/org/openhab/persistence/rrd4j/internal/RRD4jPersistenceService.java b/bundles/org.openhab.persistence.rrd4j/src/main/java/org/openhab/persistence/rrd4j/internal/RRD4jPersistenceService.java index f891231ff28..3d8abb48ba3 100644 --- a/bundles/org.openhab.persistence.rrd4j/src/main/java/org/openhab/persistence/rrd4j/internal/RRD4jPersistenceService.java +++ b/bundles/org.openhab.persistence.rrd4j/src/main/java/org/openhab/persistence/rrd4j/internal/RRD4jPersistenceService.java @@ -71,6 +71,7 @@ import org.openhab.core.persistence.QueryablePersistenceService; import org.openhab.core.persistence.strategy.PersistenceCronStrategy; import org.openhab.core.persistence.strategy.PersistenceStrategy; import org.openhab.core.types.State; +import org.osgi.framework.Constants; import org.osgi.service.component.annotations.Activate; import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.ConfigurationPolicy; @@ -100,7 +101,8 @@ import org.slf4j.LoggerFactory; */ @NonNullByDefault @Component(service = { PersistenceService.class, - QueryablePersistenceService.class }, configurationPid = "org.openhab.rrd4j", configurationPolicy = ConfigurationPolicy.OPTIONAL) + QueryablePersistenceService.class }, configurationPid = "org.openhab.rrd4j", configurationPolicy = ConfigurationPolicy.OPTIONAL, property = Constants.SERVICE_PID + + "=org.openhab.rrd4j") public class RRD4jPersistenceService implements QueryablePersistenceService { private record Key(long timestamp, String name) implements Comparable {