Prevent exception when formatting value (#9597)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
Christoph Weitkamp 2020-12-30 18:27:16 +01:00 committed by GitHub
parent 437e73edf4
commit e577b1a5c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -463,19 +463,19 @@
<item-type>Number:Time</item-type>
<label>Current Time</label>
<description>Current time of currently playing media</description>
<state pattern="%d %unit%"/>
<state pattern="%.0f %unit%"/>
</channel-type>
<channel-type id="currenttimepercentage" advanced="true">
<item-type>Number:Dimensionless</item-type>
<label>Current Time in Percent</label>
<description>Current time of currently playing media</description>
<state readOnly="true" min="0" max="100" pattern="%d %unit%"/>
<state readOnly="true" pattern="%.0f %unit%"/>
</channel-type>
<channel-type id="duration">
<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>
<channel-type id="id" advanced="true">
<item-type>Number</item-type>