mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +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,
|
||||
value_fn=lambda ibeacon_advertisement: ibeacon_advertisement.distance,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
device_class=SensorDeviceClass.DISTANCE,
|
||||
),
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user