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:![image (1)](https://github.com/tlskinneriv/awnet_local/assets/110747681/d67670c7-33c7-4be8-82a7-d9c508b33bff)
other entity with device_class:distance attribute giving Unit of Measurement option:![image (2)](https://github.com/tlskinneriv/awnet_local/assets/110747681/d6267695-6f92-4c8f-9d2b-61a456ee5a45)
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")