Skip to content

Commit

Permalink
Improve handling of units within HA UI (merbanan#2624)
Browse files Browse the repository at this point in the history
Fix the unit of measurement of illuminance
  • Loading branch information
chpego authored and andrewjw committed Sep 29, 2023
1 parent 2a1cbb9 commit f86e400
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/rtl_433_mqtt_hass.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,9 @@
"device_type": "sensor",
"object_suffix": "lux",
"config": {
"device_class": "illuminance",
"name": "Outside Luminance",
"unit_of_measurement": "lux",
"unit_of_measurement": "lx",
"value_template": "{{ value|int }}",
"state_class": "measurement"
}
Expand All @@ -560,8 +561,9 @@
"device_type": "sensor",
"object_suffix": "lux",
"config": {
"device_class": "illuminance",
"name": "Outside Luminance",
"unit_of_measurement": "lux",
"unit_of_measurement": "lx",
"value_template": "{{ value|int }}",
"state_class": "measurement"
}
Expand Down

0 comments on commit f86e400

Please sign in to comment.