mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Fixing errors created by 2021.10.x versions (#19761)
This commit is contained in:
parent
ca32410c9a
commit
f58d3365cc
@ -133,7 +133,7 @@ sensor:
|
||||
withings_weight_lbs_USER_PROFILE_NAME:
|
||||
friendly_name: "withings weight_lbs_USER_PROFILE_NAME"
|
||||
unit_of_measurement: "lbs"
|
||||
value_template: "{{ (states('sensor.withings_weight_kg_USER_PROFILE_NAME') | float * 2.20462262185) | round(2) }}"
|
||||
value_template: "{{ (states('sensor.withings_weight_kg_USER_PROFILE_NAME') | float(0) * 2.20462262185) | round(2, default=0) }}"
|
||||
icon_template: mdi:weight-pound
|
||||
|
||||
- platform: template
|
||||
@ -141,7 +141,7 @@ sensor:
|
||||
withings_bone_mass_lbs_USER_PROFILE_NAME:
|
||||
friendly_name: "withings bone_mass_lbs_USER_PROFILE_NAME"
|
||||
unit_of_measurement: "lbs"
|
||||
value_template: "{{ (states('sensor.withings_bone_mass_kg_USER_PROFILE_NAME') | float * 2.20462262185) | round(2) }}"
|
||||
value_template: "{{ (states('sensor.withings_bone_mass_kg_USER_PROFILE_NAME') | float(0) * 2.20462262185) | round(2, default=0) }}"
|
||||
icon_template: mdi:weight-pound
|
||||
|
||||
- platform: template
|
||||
@ -149,7 +149,7 @@ sensor:
|
||||
withings_fat_free_mass_lbs_USER_PROFILE_NAME:
|
||||
friendly_name: "withings fat_free_mass_lbs_USER_PROFILE_NAME"
|
||||
unit_of_measurement: "lbs"
|
||||
value_template: "{{ (states('sensor.withings_fat_free_mass_kg_USER_PROFILE_NAME') | float * 2.20462262185) | round(2) }}"
|
||||
value_template: "{{ (states('sensor.withings_fat_free_mass_kg_USER_PROFILE_NAME') | float(0) * 2.20462262185) | round(2, default=0) }}"
|
||||
icon_template: mdi:weight-pound
|
||||
|
||||
- platform: template
|
||||
@ -157,7 +157,7 @@ sensor:
|
||||
withings_fat_mass_lbs_USER_PROFILE_NAME:
|
||||
friendly_name: "withings fat_mass_lbs_USER_PROFILE_NAME"
|
||||
unit_of_measurement: "lbs"
|
||||
value_template: "{{ (states('sensor.withings_fat_mass_kg_USER_PROFILE_NAME') | float * 2.20462262185) | round(2) }}"
|
||||
value_template: "{{ (states('sensor.withings_fat_mass_kg_USER_PROFILE_NAME') | float(0) * 2.20462262185) | round(2, default=0) }}"
|
||||
icon_template: mdi:weight-pound
|
||||
|
||||
- platform: template
|
||||
@ -165,7 +165,7 @@ sensor:
|
||||
withings_muscle_mass_lbs_USER_PROFILE_NAME:
|
||||
friendly_name: "withings muscle_mass_lbs_USER_PROFILE_NAME"
|
||||
unit_of_measurement: "lbs"
|
||||
value_template: "{{ (states('sensor.withings_muscle_mass_kg_USER_PROFILE_NAME') | float * 2.20462262185) | round(2) }}"
|
||||
value_template: "{{ (states('sensor.withings_muscle_mass_kg_USER_PROFILE_NAME') | float(0) * 2.20462262185) | round(2, default=0) }}"
|
||||
icon_template: mdi:weight-pound
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user