From 9fe534ca4c4d5e02f16478a9fbd68fb16506b01b Mon Sep 17 00:00:00 2001 From: jimtng <2554958+jimtng@users.noreply.github.com> Date: Mon, 2 Sep 2024 02:17:57 +1000 Subject: [PATCH] [mqtt.homeassistant] Update config abbreviations (#17359) Signed-off-by: Jimmy Tanagra Signed-off-by: Ciprian Pascu --- .../mqtt/homeassistant/internal/MappingJsonReader.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/MappingJsonReader.java b/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/MappingJsonReader.java index 1a04911c67e..201ba1e48ed 100644 --- a/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/MappingJsonReader.java +++ b/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/MappingJsonReader.java @@ -121,7 +121,6 @@ public class MappingJsonReader extends JsonReaderDelegate { ABBREVIATIONS.put("json_attr", "json_attributes"); ABBREVIATIONS.put("json_attr_t", "json_attributes_topic"); ABBREVIATIONS.put("json_attr_tpl", "json_attributes_template"); - ABBREVIATIONS.put("lrst_t", "last_reset_topic"); ABBREVIATIONS.put("lrst_val_tpl", "last_reset_value_template"); ABBREVIATIONS.put("max", "max"); ABBREVIATIONS.put("min", "min"); @@ -295,14 +294,17 @@ public class MappingJsonReader extends JsonReaderDelegate { ABBREVIATIONS.put("l_ver_tpl", "latest_version_template"); ABBREVIATIONS.put("pl_inst", "payload_install"); - DEVICE_ABBREVIATIONS.put("cu", "configuration_url"); DEVICE_ABBREVIATIONS.put("cns", "connections"); - DEVICE_ABBREVIATIONS.put("hw", "hw_version"); + DEVICE_ABBREVIATIONS.put("cu", "configuration_url"); DEVICE_ABBREVIATIONS.put("ids", "identifiers"); + DEVICE_ABBREVIATIONS.put("name", "name"); DEVICE_ABBREVIATIONS.put("mf", "manufacturer"); DEVICE_ABBREVIATIONS.put("mdl", "model"); - DEVICE_ABBREVIATIONS.put("sa", "suggested_area"); + DEVICE_ABBREVIATIONS.put("mdl_id", "model_id"); + DEVICE_ABBREVIATIONS.put("hw", "hw_version"); DEVICE_ABBREVIATIONS.put("sw", "sw_version"); + DEVICE_ABBREVIATIONS.put("sa", "suggested_area"); + DEVICE_ABBREVIATIONS.put("sn", "serial_number"); } private final Map mapping;