mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 06:05:10 +02:00
Add new distance device class to iBeacons (#79162)
This commit is contained in:
@@ -61,6 +61,7 @@ SENSOR_DESCRIPTIONS = (
|
|||||||
native_unit_of_measurement=LENGTH_METERS,
|
native_unit_of_measurement=LENGTH_METERS,
|
||||||
value_fn=lambda ibeacon_advertisement: ibeacon_advertisement.distance,
|
value_fn=lambda ibeacon_advertisement: ibeacon_advertisement.distance,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
device_class=SensorDeviceClass.DISTANCE,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user