]> git.basschouten.com Git - openhab-addons.git/commitdiff
[chromecast] Prevent exception when formatting value (#9596)
authorChristoph Weitkamp <github@christophweitkamp.de>
Thu, 31 Dec 2020 11:54:29 +0000 (12:54 +0100)
committerGitHub <noreply@github.com>
Thu, 31 Dec 2020 11:54:29 +0000 (12:54 +0100)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
bundles/org.openhab.binding.chromecast/src/main/resources/OH-INF/thing/thing-types.xml

index 0c3de8ed9def959b084714eabb42d20c91e645ed..401cfb187ad897f77b83f5b7e962a13ba35f9476 100644 (file)
                <item-type>Number:Time</item-type>
                <label>Current Time</label>
                <description>Current time of currently playing media</description>
-               <state readOnly="true" pattern="%d %unit%"/>
+               <state readOnly="true" pattern="%.0f %unit%"/>
        </channel-type>
 
        <channel-type id="duration" advanced="true">
                <item-type>Number:Time</item-type>
                <label>Duration</label>
                <description>Length of currently playing media</description>
-               <state readOnly="true" pattern="%d %unit%"/>
+               <state readOnly="true" pattern="%.0f %unit%"/>
        </channel-type>
 
        <!-- Metadata Information -->