Skip to content

Commit

Permalink
Fix rtl_433_mqtt_hass.py rain_in value template (merbanan#2801)
Browse files Browse the repository at this point in the history
  • Loading branch information
shampeon authored Jan 22, 2024
1 parent 935df25 commit fe43962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/rtl_433_mqtt_hass.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@
"config": {
"device_class": "precipitation",
"name": "Rain Total",
"unit_of_measurement": "mm",
"value_template": "{{ (float(value|float) * 25.4) | round(2) }}",
"unit_of_measurement": "in",
"value_template": "{{ value|float|round(2) }}",
"state_class": "total_increasing"
}
},
Expand Down

0 comments on commit fe43962

Please sign in to comment.