Describe the bug
Lightning Sensor provides distance data in km and cannot be changed to miles through the UI like other distance-based entities. The integration is missing the device_class:distance attribute.
To Reproduce
Steps to reproduce the behavior:
Navigate to Lightning Sensor Distance
Click on Gear Icon
See unit of measurement dropdown is missing.
Expected behavior
User should be able to choose the reported distance unit. Other device_class:distance entities offer several distance measurements including km, mi (and also meters, feet, yards, etc...)
other entity with device_class:distance attribute giving Unit of Measurement option:
Debug log output from the integration (see Home Assistant docs for how to enable debug logging for an integration; integration name: "custom_components.awnet_local")
Integration Version: v1.12
Home Assistant Version: core-2023.7.1
Describe the bug Lightning Sensor provides distance data in km and cannot be changed to miles through the UI like other distance-based entities. The integration is missing the device_class:distance attribute.
To Reproduce Steps to reproduce the behavior:
Expected behavior User should be able to choose the reported distance unit. Other device_class:distance entities offer several distance measurements including km, mi (and also meters, feet, yards, etc...)
Screenshots awnet_local integration sensor entity:
other entity with device_class:distance attribute giving Unit of Measurement option:
Debug log output from the integration (see Home Assistant docs for how to enable debug logging for an integration; integration name: "custom_components.awnet_local")