Skip to content

Commit

Permalink
Improve handling of units within HA UI (#2624)
Browse files Browse the repository at this point in the history
Fix the unit of measurement of illuminance
  • Loading branch information
chpego authored Sep 18, 2023
1 parent 70d84d0 commit 582af76
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 582af76

Please sign in to comment.