1
mirror of https://github.com/home-assistant/core synced 2024-08-15 18:25:44 +02:00

Add new distance device class to iBeacons (#79162)

This commit is contained in:
J. Nick Koston 2022-09-27 07:49:34 -10:00 committed by GitHub
parent 12e4d18038
commit d991c173a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,6 +61,7 @@ SENSOR_DESCRIPTIONS = (
native_unit_of_measurement=LENGTH_METERS,
value_fn=lambda ibeacon_advertisement: ibeacon_advertisement.distance,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.DISTANCE,
),
)