home-assistant / frontend

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

Different unit on entity when used 'with_unit' #20066

Open Mariusthvdb opened 4 months ago

Mariusthvdb commented 4 months ago

Checklist

Describe the issue you are experiencing

using the _cost and _compensation entities made by the Energy integration, I grouped these in the frontend. Using a template showing the unit, like

{{states(config.entity,with_unit=True)}}

shows the EUR unit correctly,

Scherm­afbeelding 2024-03-12 om 10 46 46

but clicking the more-info reveals the sign

Scherm­afbeelding 2024-03-12 om 10 54 06

made me check the entity directly and the template is correct in showing EUR

Scherm­afbeelding 2024-03-12 om 10 42 26

Describe the behavior you expected

have the unit be displayed consistently all through the UI

Steps to reproduce the issue

  1. see above
  2. ...

What version of Home Assistant Core has the issue?

2024.4.0.dev20240312

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

ANy

Which operating system are you using to run this browser?

macOS Sonoma 14.2.1

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

Scherm­afbeelding 2024-03-12 om 10 46 01
github-actions[bot] commented 1 month 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.

Mariusthvdb commented 1 month ago

keep: HA 2024.6

Scherm­afbeelding 2024-06-10 om 15 05 31 Scherm­afbeelding 2024-06-10 om 15 05 50