Fixes rounding issue in home assistant sensor
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
This commit is contained in:
parent
5204fe3e08
commit
f1523ef5f8
|
@ -56,7 +56,7 @@ sensor:
|
|||
unit_of_measurement: '%'
|
||||
icon_template: mdi:file-percent
|
||||
value_template: >-
|
||||
{{ (states.sensor.voron_v0_sensor.attributes['display_status']['progress']) * 100 | round(1) if states('sensor.voron_v0_sensor') != 'unknown' else None }}
|
||||
{{ (states.sensor.voron_v0_sensor.attributes['display_status']['progress'] * 100) | round(1) if states('sensor.voron_v0_sensor') != 'unknown' else None }}
|
||||
|
||||
vzero_print_time:
|
||||
icon_template: mdi:clock-start
|
||||
|
|
Loading…
Reference in New Issue