home-assistant / frontend

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

Entities using decimal numbers cause slowness and crashing on iOS #21969

Open rodrigofragadf opened 1 month ago

rodrigofragadf commented 1 month ago

https://github.com/user-attachments/assets/49c602ff-581b-4d4c-89ef-b6067ffd9dd0

https://github.com/user-attachments/assets/2502f582-49a8-4509-b75e-433a6237b806

Checklist

Describe the issue you are experiencing

When using the Portuguese (BR) language and displaying entities that contain numerical values with decimal points (such as temperature sensors, percentages, and energy consumption), these data are not displayed correctly or do not appear at all.

This behavior causes slowness, crashes, and failure to render cards in dashboards or when viewing devices in the configuration menu, making the app unusable. Regardless of the chosen number format, the issue persists, but changing the language to English resolves it. This happens in the Home Assistant app or in any browser on iOS (tested on iOS 15.1, but there are reports of other affected versions).

Describe the behavior you expected

Numeric values with decimal points should be displayed normally without causing slowness, crashes, or rendering failures in the dashboard cards in the Portuguese BR language

Steps to reproduce the issue

  1. Change the display language to Portuguese (BR).
  2. Navigate to a card in the dashboard or the configuration menu where decimal numbers are displayed (e.g., temperature, percentage, etc.).
  3. Refresh the page by scrolling down
  4. Verify if the card or entity is not displayed correctly, if the app becomes slow, and in some cases, depending on the number of entities with decimal values, if the app crashes.

What version of Home Assistant Core has the issue?

2024.9.1

What was the last working version of Home Assistant Core?

Many mounths ago

In which browser are you experiencing the issue with?

HA app and all browsers on ios

Which operating system are you using to run this browser?

IOS 15.1

State of relevant entities

Any value that contains decimal places

Problem-relevant frontend configuration

Change the display language to Portuguese (BR)

Javascript errors shown in your browser console/inspector

No response

Additional information

Changing the language to English resolves the issue, but when using formats 1.234.567,89 or 1 234 567,89 or 1,234,567.89, it always displays 1,234,567.89. The format 1234567.89 is displayed correctly.

wendevlin commented 2 weeks ago

@rodrigofragadf Sorry I wasn't able to reproduce your issue. Have you tested it with an other iPhone or iPad?