We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e4f825 commit 48084eeCopy full SHA for 48084ee
source/_cookbook/track_battery_level.markdown
@@ -22,7 +22,7 @@ sensor:
22
unit_of_measurement: '%'
23
value_template: >-
24
{% raw %}{%- if states.device_tracker.iphone.attributes.battery %}
25
- {{ states.device_tracker.iphone.attributes.battery }}
+ {{ states.device_tracker.iphone.attributes.battery|round }}
26
{% else %}
27
{{ states.sensor.battery_iphone.state }}
28
{%- endif %}{% endraw %}
0 commit comments