mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00: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…
x
Reference in New Issue
Block a user