home-assistant / frontend

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

Setting Display Precision to "Default" causes state/entity to not show in Dialogue #15780

Closed birdwing closed 1 year ago

birdwing commented 1 year ago

Checklist

Describe the issue you are experiencing

When I click on my Utility Meter Helper sensor to open the dialogue, I noticed that the State is not shown. image

After playing around with it I realized that the issue only occurs when the Display Precision is set to Default. image

If I change the Display Precision from Default (7.707) to simply 7.707 image

The state is properly shown in the dialogue window: image

In both cases the precision is set to 3 digits, but when it is the default, the state doesn't display.

Describe the behavior you expected

I expected the popup window to display the state no matter what Display Precision is selected.

Steps to reproduce the issue

  1. Set Utility Meter Helper display precision to default.
  2. Click the entity in the list to open dialogue.
  3. State is missing

What version of Home Assistant Core has the issue?

2023.3.2

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Google Chrome 110.0.5481.178, and the HA Android Companion App 2023.1.1-full

Which operating system are you using to run this browser?

Windows 11, Android 13

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

I know this is typically related to the frontend issue on the web, but this issue also shows up in the Android Companion App.

birdwing commented 1 year ago

Having a good look at my screenshots, I just realized it's not the State that is missing from the dialogue, but the entire Entity itself. image

Vs. when precision is not set to default: image

karwosts commented 1 year ago

I couldn't reproduce this personally. Do you have an exception in your browser console?

birdwing commented 1 year ago

I do not believe so, I did not think to look at the time.

I have since updated to HA Core 2023.3.4

Now instead of not displaying, it just isn't applying the precision. Here is an animation: precision

ildar170975 commented 1 year ago

Now instead of not displaying, it just isn't applying the precision.

This is a different issue and here is what I noticed:

  1. First in more-info we see an accuracy ".xxx".
  2. You went to precision settings - we see that it is set to ".xxx" (seems to be same as it was displayed on step 1).
  3. You changed precision to default.
  4. We see in more-info an accuracy ".xxxxxxx..." - which seems to be NOT conflicting to step 3 since you set the "default" option.

Surely, a "Default (.xxx)" label is confusing since a default value seems to be "untouched" raw ".xxxxxxxx...". But this is another issue, not related to the issue described in the 1st post.

birdwing commented 1 year ago

Surely, a "Default (.xxx)" label is confusing since a default value seems to be "untouched" raw ".xxxxxxxx...". But this is another issue, not related to the issue described in the 1st post.

You're right. The label confused me because I was expecting an issue to happen. It does appear though that the issue I first reported is no longer occuring.

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment đź‘Ť This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.