From 2fab6606ec66c73ba5d7b5e862eca355f8daaf6e Mon Sep 17 00:00:00 2001 From: Mark Herwege Date: Thu, 14 Dec 2023 14:44:46 +0100 Subject: [PATCH] AddonInfoReader changes Signed-off-by: Mark Herwege --- .../openhab/core/addon/internal/xml/AddonInfoReader.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.core.addon/src/main/java/org/openhab/core/addon/internal/xml/AddonInfoReader.java b/bundles/org.openhab.core.addon/src/main/java/org/openhab/core/addon/internal/xml/AddonInfoReader.java index 47cad85e943..892b84cfaa1 100644 --- a/bundles/org.openhab.core.addon/src/main/java/org/openhab/core/addon/internal/xml/AddonInfoReader.java +++ b/bundles/org.openhab.core.addon/src/main/java/org/openhab/core/addon/internal/xml/AddonInfoReader.java @@ -17,6 +17,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault; import org.openhab.core.addon.AddonDiscoveryMethod; import org.openhab.core.addon.AddonMatchProperty; +import org.openhab.core.addon.AddonParameter; import org.openhab.core.config.core.ConfigDescription; import org.openhab.core.config.core.ConfigDescriptionParameter; import org.openhab.core.config.core.ConfigDescriptionParameterGroup; @@ -70,6 +71,7 @@ protected void registerConverters(XStream xstream) { xstream.registerConverter(new ConfigDescriptionParameterGroupConverter()); xstream.registerConverter(new FilterCriteriaConverter()); xstream.registerConverter(new AddonDiscoveryMethodConverter()); + xstream.registerConverter(new AddonParameterConverter()); xstream.registerConverter(new AddonMatchPropertyConverter()); } @@ -93,9 +95,11 @@ protected void registerAliases(XStream xstream) { xstream.alias("discovery-methods", NodeList.class); xstream.alias("discovery-method", AddonDiscoveryMethod.class); xstream.alias("service-type", NodeValue.class); - xstream.alias("mdns-service-type", NodeValue.class); + xstream.alias("discovery-parameters", NodeList.class); + xstream.alias("discovery-parameter", AddonParameter.class); xstream.alias("match-properties", NodeList.class); xstream.alias("match-property", AddonMatchProperty.class); + xstream.alias("value", NodeValue.class); xstream.alias("regex", NodeValue.class); } }