Use SensorDeviceClass.DISTANCE in components (#79285)

* Use SensorDeviceClass.DISTANCE in components

* Adjust mysensors
This commit is contained in:
epenet 2022-09-29 12:19:34 +02:00 committed by GitHub
parent c527defe31
commit 4bd686bdb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 1 deletions

View file

@ -100,6 +100,7 @@ SENSORS: dict[str, SensorEntityDescription] = {
"V_DISTANCE": SensorEntityDescription(
key="V_DISTANCE",
native_unit_of_measurement=LENGTH_METERS,
device_class=SensorDeviceClass.DISTANCE,
icon="mdi:ruler",
),
"V_IMPEDANCE": SensorEntityDescription(