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:
parent
12e4d18038
commit
d991c173a2
@ -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,
|
||||
),
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user