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

Entity not showing unit_of_measurement #89

Open
nelbs opened this issue Oct 22, 2024 · 2 comments
Open

Entity not showing unit_of_measurement #89

nelbs opened this issue Oct 22, 2024 · 2 comments

Comments

@nelbs
Copy link

nelbs commented Oct 22, 2024

Hi,

I noticed that the unit_of_measurement is not displayed when it should be. For example, sensor.aeg_droger_timetoend has a unit_of_measurement set to ‘min’, but it is not shown

image

image

image

@albaintor
Copy link
Owner

Do you have another sensor in another device with the unit of duration shown ?
I have the same behaviour here and I am not sure this is a bug.

Also I have not paid attention : when the value is different from 0, still no units displayed ?

@nelbs
Copy link
Author

nelbs commented Oct 31, 2024

After updating the integration the state of the timetoend sensor is set to a (default?) value of 1:49:00.
image

Upon further consideration, it makes sense that the unit is not displayed since the value looks like a timestamp. However, this does not match the device class (duration) and unit_of_measurement (min) of the sensor. Here is an example of a sensor where the unit of measurement is given.

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants