You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
![image (1)](https://private-user-images.githubusercontent.com/110747681/252851449-d67670c7-33c7-4be8-82a7-d9c508b33bff.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyMTEwNjMsIm5iZiI6MTcyMzIxMDc2MywicGF0aCI6Ii8xMTA3NDc2ODEvMjUyODUxNDQ5LWQ2NzY3MGM3LTMzYzctNGJlOC04MmE3LWQ5YzUwOGIzM2JmZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgwOVQxMzM5MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00ZGNlMjJjNTYzMDQyMGExOTVjNmQ4ZmVkMjNlN2E4MTYzZTQ4MGI5MWI3MTA5ZTY2ZmMxYTNjYzZkOTcwODgxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.mFM7MweqF0dckm-RXxDYH47RkmlHonJ735oPxxhSa-I)
awnet_local integration sensor entity:
other entity with device_class:distance attribute giving Unit of Measurement option:
![image (2)](https://private-user-images.githubusercontent.com/110747681/252851585-d6267695-6f92-4c8f-9d2b-61a456ee5a45.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyMTEwNjMsIm5iZiI6MTcyMzIxMDc2MywicGF0aCI6Ii8xMTA3NDc2ODEvMjUyODUxNTg1LWQ2MjY3Njk1LTZmOTItNGM4Zi05ZDJiLTYxYTQ1NmVlNWE0NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgwOVQxMzM5MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yN2E4ZjkwMzYxNjdjODk4YjgzNmI2NzU2MWQwMzc0YjJlMTc1NGY5ZTgxZDA0MjFlYWIxYjc4MjUyMzU2MDBjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.G2nFTNR7L-sNIrLfVcFhhYwVIWI3BxpG4dT4463D6Cc)
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")
The text was updated successfully, but these errors were encountered: