]> git.basschouten.com Git - openhab-addons.git/commitdiff
[deconz] Prevent exception when formatting value (#10486)
authorChristoph Weitkamp <github@christophweitkamp.de>
Thu, 8 Apr 2021 20:42:15 +0000 (22:42 +0200)
committerGitHub <noreply@github.com>
Thu, 8 Apr 2021 20:42:15 +0000 (22:42 +0200)
- Prevent exception when formatting value

Fixes #10295

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/sensor-thing-types.xml

index a379d52af764156df6b5efcc8e60e4aa98034ca1..b79088666d06bfbd2b1d89f577f6ce4c2e5d20b3 100644 (file)
                <item-type>Number:Dimensionless</item-type>
                <label>Valve position</label>
                <description>Current valve position</description>
-               <state readOnly="true" pattern="%d %unit%"/>
+               <state readOnly="true" pattern="%.0f %unit%"/>
        </channel-type>
 
 </thing:thing-descriptions>