From cdc0e0f32e51b26099368a0f23ee68f99b6b8457 Mon Sep 17 00:00:00 2001 From: Mark Herwege Date: Tue, 17 Dec 2024 19:53:24 +0100 Subject: [PATCH] [persistence] Fix UI persistence item exclude config (#4502) Signed-off-by: Mark Herwege --- .../registry/PersistenceServiceConfigurationDTOMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.core.persistence/src/main/java/org/openhab/core/persistence/registry/PersistenceServiceConfigurationDTOMapper.java b/bundles/org.openhab.core.persistence/src/main/java/org/openhab/core/persistence/registry/PersistenceServiceConfigurationDTOMapper.java index 057490a92..a2c2be880 100644 --- a/bundles/org.openhab.core.persistence/src/main/java/org/openhab/core/persistence/registry/PersistenceServiceConfigurationDTOMapper.java +++ b/bundles/org.openhab.core.persistence/src/main/java/org/openhab/core/persistence/registry/PersistenceServiceConfigurationDTOMapper.java @@ -121,7 +121,7 @@ public class PersistenceServiceConfigurationDTOMapper { return new PersistenceGroupConfig(string.substring(0, string.length() - 1)); } else { if (string.startsWith("!")) { - return new PersistenceItemExcludeConfig(string.substring(1, string.length() - 1)); + return new PersistenceItemExcludeConfig(string.substring(1)); } return new PersistenceItemConfig(string); }