Skip to content

Commit fe43962

Browse files
authored
Fix rtl_433_mqtt_hass.py rain_in value template (#2801)
1 parent 935df25 commit fe43962

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/rtl_433_mqtt_hass.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,8 @@
434434
"config": {
435435
"device_class": "precipitation",
436436
"name": "Rain Total",
437-
"unit_of_measurement": "mm",
438-
"value_template": "{{ (float(value|float) * 25.4) | round(2) }}",
437+
"unit_of_measurement": "in",
438+
"value_template": "{{ value|float|round(2) }}",
439439
"state_class": "total_increasing"
440440
}
441441
},

0 commit comments

Comments
 (0)