1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00

Fix uom/device class mismatches in tests (#84372)

This commit is contained in:
Franck Nijhof
2022-12-21 22:47:59 +01:00
committed by GitHub
parent 92beab82e2
commit 2e92fefc0a
6 changed files with 23 additions and 8 deletions
@@ -70,7 +70,7 @@ def init(empty=False):
name=f"{device_class} sensor",
unique_id=f"unique_{device_class}",
device_class=device_class,
unit_of_measurement=UNITS_OF_MEASUREMENT.get(device_class),
native_unit_of_measurement=UNITS_OF_MEASUREMENT.get(device_class),
)
for device_class in DEVICE_CLASSES
}