]> git.basschouten.com Git - openhab-addons.git/commitdiff
[tesla] Correctly handle floating point numbers (#9802)
authorKai Kreuzer <kai@openhab.org>
Wed, 13 Jan 2021 19:53:10 +0000 (20:53 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Jan 2021 19:53:10 +0000 (20:53 +0100)
Fixes #9636

Signed-off-by: Kai Kreuzer <kai@openhab.org>
bundles/org.openhab.binding.tesla/src/main/resources/OH-INF/thing/channels.xml

index 5e43d081cbc17f717c1a338b38d815eedd8ff4c4..5835b0d8ecdd8a92ef0add19d0b266031bc1b45c 100644 (file)
                <item-type>Number:Length</item-type>
                <label>Estimated Battery Range</label>
                <description>Estimated battery range</description>
-               <state pattern="%d %unit%" readOnly="true"></state>
+               <state pattern="%.0f %unit%" readOnly="true"></state>
        </channel-type>
        <channel-type id="estimatedrange" advanced="true">
                <item-type>Number</item-type>