mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Prevent exception when formatting value (#9597)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
parent
437e73edf4
commit
e577b1a5c7
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user