home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.01k stars 2.74k forks source link

Numbers Showing Too Large in Frontend #8304

Closed JeffResc closed 3 years ago

JeffResc commented 3 years ago

Checklist

The problem

When enlarging an entity (either though an entity card, in the entity list or any other means), the number label on the color temperature slider is not rounded and shows a huge decimal number. Image

Expected behavior

Proabbly a rounded integer to display.

Steps to reproduce

Open an entity with a color temperature slider using any means and slide the slider, you will notice a huge number will display.

Environment

State of relevant entities

min_mireds: 152.998779296875
max_mireds: 500
brightness: 255
color_temp: 300
hs_color:
  - 0
  - 0
rgb_color:
  - 255
  - 255
  - 255
xy_color:
  - 0.323
  - 0.329
white_value: 255
friendly_name: [redacted]
supported_features: 187

Problem-relevant frontend configuration

N/A

Javascript errors shown in your browser console/inspector

N/A

Additional information

None at this time, if you need any more information or screenshots, feel free to let me know.

spacegaier commented 3 years ago

Duplicate of https://github.com/home-assistant/core/issues/44822. Backend provides incorrect values, as mireds should be integers.