-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Color temperature slider has a 13 place decimal #44822
Comments
Can you please post the attributes of your light (from the HA dev tools). In my tests I have only full integer values, but I could imagine that depending of what the min/max mireds values are, that there might be some calculations that could result in float values. |
Sorry for the slow response!
|
That's an interesting value 😄. But independent of whether that is correct or not, the frontend should probably round the value for the slider. |
I checked the docs again and https://developers.home-assistant.io/docs/core/entity/light/ I will have this issue transferred to the backend repo. The |
shelly documentation |
esphome documentation |
Shelly integration has type error in the declaration, core/homeassistant/components/shelly/light.py Line 161 in 7b280bd
but actually returns an int. core/homeassistant/components/shelly/light.py Line 176 in 7b280bd
@balloob the I can submit a PR to fix Shelly integration, but I think first stage should be to add types to
Can you list of the expected types? |
Checklist
The problem
Color temp slider on light cards has a 13 place decimal trailing behind the value.
Expected behavior
Just show a whole number.
Steps to reproduce
Adjust any color temperature on a light card.
It's more obvious on iOS, but still present in Firefox/Chrome/Edge/Safari
Environment
State of relevant entities
Problem-relevant configuration
Javascript errors shown in your browser console/inspector
Additional information
The text was updated successfully, but these errors were encountered: