diff --git a/bundles/org.openhab.binding.danfossairunit/src/main/java/org/openhab/binding/danfossairunit/internal/DanfossAirUnitBindingConstants.java b/bundles/org.openhab.binding.danfossairunit/src/main/java/org/openhab/binding/danfossairunit/internal/DanfossAirUnitBindingConstants.java index 7abfe5a70..87cd0bf75 100644 --- a/bundles/org.openhab.binding.danfossairunit/src/main/java/org/openhab/binding/danfossairunit/internal/DanfossAirUnitBindingConstants.java +++ b/bundles/org.openhab.binding.danfossairunit/src/main/java/org/openhab/binding/danfossairunit/internal/DanfossAirUnitBindingConstants.java @@ -35,8 +35,4 @@ public class DanfossAirUnitBindingConstants { // The thing type as a set public static Set SUPPORTED_THING_TYPES_UIDS = Collections.singleton(THING_TYPE_AIRUNIT); - - // Properties - public static String PROPERTY_UNIT_NAME = "Unit Name"; - public static String PROPERTY_SERIAL = "Serial Number"; } diff --git a/bundles/org.openhab.binding.danfossairunit/src/main/java/org/openhab/binding/danfossairunit/internal/handler/DanfossAirUnitHandler.java b/bundles/org.openhab.binding.danfossairunit/src/main/java/org/openhab/binding/danfossairunit/internal/handler/DanfossAirUnitHandler.java index 4a6af1245..f815e3c84 100644 --- a/bundles/org.openhab.binding.danfossairunit/src/main/java/org/openhab/binding/danfossairunit/internal/handler/DanfossAirUnitHandler.java +++ b/bundles/org.openhab.binding.danfossairunit/src/main/java/org/openhab/binding/danfossairunit/internal/handler/DanfossAirUnitHandler.java @@ -12,8 +12,6 @@ */ package org.openhab.binding.danfossairunit.internal.handler; -import static org.openhab.binding.danfossairunit.internal.DanfossAirUnitBindingConstants.*; - import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; @@ -184,8 +182,8 @@ public class DanfossAirUnitHandler extends BaseThingHandler { try { Map properties = new HashMap<>(2); - properties.put(PROPERTY_UNIT_NAME, localAirUnit.getUnitName()); - properties.put(PROPERTY_SERIAL, localAirUnit.getUnitSerialNumber()); + properties.put(Thing.PROPERTY_MODEL_ID, localAirUnit.getUnitName()); + properties.put(Thing.PROPERTY_SERIAL_NUMBER, localAirUnit.getUnitSerialNumber()); updateProperties(properties); propertiesInitializedSuccessfully = true; updateStatus(ThingStatus.ONLINE); diff --git a/bundles/org.openhab.binding.danfossairunit/src/main/resources/OH-INF/thing/thing-types.xml b/bundles/org.openhab.binding.danfossairunit/src/main/resources/OH-INF/thing/thing-types.xml index 3873c72cd..70831185a 100644 --- a/bundles/org.openhab.binding.danfossairunit/src/main/resources/OH-INF/thing/thing-types.xml +++ b/bundles/org.openhab.binding.danfossairunit/src/main/resources/OH-INF/thing/thing-types.xml @@ -17,8 +17,7 @@ - unknown - unknown + Danfoss