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 State widget still sometimes ignores precision setting #4720

Open
bdr99 opened this issue Oct 11, 2024 · 1 comment
Open

Entity State widget still sometimes ignores precision setting #4720

bdr99 opened this issue Oct 11, 2024 · 1 comment
Labels
bug Something isn't working widget

Comments

@bdr99
Copy link

bdr99 commented Oct 11, 2024

Home Assistant Android app version(s): 2024.9.4-full

Android version(s): 14

Device model(s): Pixel 8 Pro

Home Assistant version: 2024.9.3

Last working Home Assistant release (if known): Unknown

Description of problem, include YAML if issue is related to notifications:
I previously reported #3397 which was supposedly fixed in #3625. After #3625 was merged, the problem was mostly fixed, and the entity state respects the configured display precision most of the time. However, sometimes, it is still showing too many digits of precision. I can't find any pattern as to when this occurs but I notice it occasionally.

In the below screenshots, I have a sensor entity configured to use 1 decimal place of precision. However, sometimes the widget shows 2 decimal places.

Companion App Logs:
The issue is intermittent and I haven't been able to capture logs but I can attempt to, if needed.

Screenshot or video of problem:

Entity more info page:

entity_info

Entity State widget:

widget

Entity settings:

entity_settings

Widget settings:

widget_settings

Additional information:

@bdr99 bdr99 added the bug Something isn't working label Oct 11, 2024
@dshokouhi
Copy link
Member

when you see this issue are there any errors in the app logs or in HA core at the time? Looking at the code there may have been an issue with the API at the time

val entityOptions = if (
entity?.canSupportPrecision() == true &&
serverManager.getServer(serverId)?.version?.isAtLeast(2023, 3) == true
) {
serverManager.webSocketRepository(serverId).getEntityRegistryFor(entity.entityId)?.options
} else {
null
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working widget
Projects
None yet
Development

No branches or pull requests

3 participants