Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove device_class from fuel_level sensors #177

Merged
merged 2 commits into from
Nov 25, 2023

Conversation

CM000n
Copy link
Collaborator

@CM000n CM000n commented Nov 21, 2023

This fix should solve a problem that @clews described here: #166 (comment)

Home Assistant checks whether the native_unit_of_measurement of a sensor matches its device_class. Unfortunately, PERCENTAGE ('%') is not a valid unit for a STORAGE device_class. Unfortunately, there is currently no more suitable device_class to describe a fuel level, so I have set the device_class to None for the time being.

@CM000n CM000n self-assigned this Nov 21, 2023
Copy link
Owner

@DurgNomis-drol DurgNomis-drol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🚀

@DurgNomis-drol DurgNomis-drol merged commit bf9afa1 into master Nov 25, 2023
3 checks passed
@CM000n CM000n deleted the bug/wrong_unit_for_device_class_in_fuel_level branch November 25, 2023 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants