]> git.basschouten.com Git - openhab-addons.git/commitdiff
[dwdunwetter] Prevent exception when formatting value (#10556)
authorChristoph Weitkamp <github@christophweitkamp.de>
Sat, 24 Apr 2021 10:27:19 +0000 (12:27 +0200)
committerGitHub <noreply@github.com>
Sat, 24 Apr 2021 10:27:19 +0000 (12:27 +0200)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
bundles/org.openhab.binding.dwdunwetter/src/main/resources/OH-INF/thing/thing-types.xml

index 94b644bc8083039f6c277ccfbdf6798ed5893dd8..d454aa57c17c0c813e8ade5a3d25a22d16b2c7f3 100644 (file)
@@ -114,13 +114,13 @@ This happens after all other channels are populated.]]></description>
                <item-type>Number:Length</item-type>
                <label>Height (from)</label>
                <description>Lower Height above sea level for which the warning is valid.</description>
-               <state readOnly="true" pattern="%d m"/>
+               <state readOnly="true" pattern="%.0f m"/>
        </channel-type>
        <channel-type id="ceiling">
                <item-type>Number:Length</item-type>
                <label>Height (to)</label>
                <description>Upper Height above sea level for which the warning is valid.</description>
-               <state readOnly="true" pattern="%d m"/>
+               <state readOnly="true" pattern="%.0f m"/>
        </channel-type>
        <channel-type id="instruction">
                <item-type>String</item-type>