You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked the troubleshooting section in the README to verify that I have the latest Mushroom version.
I did a search to see if there is a similar issue or if a pull request is open.
Current Behavior
If an entity has a floating point value, it looks like the template card will always use the period (".") as the decimal separator.
Expected Behavior
Some locales use a comma as the decimal separator (","). Mushroom should use the separator as dictated by the selected locale in HA. In my case, since I'm using my HA environment in Dutch (nl-NL), where "," is used as the decimal separator, Mushroom should inherit this.
Steps To Reproduce
Change the Home Assistant locale to any language where "," is the decimal separator (e.g. Dutch, Netherlands, nl-NL).
Ensure you have an entity with a floating point value (e.g. "5,23", with "," being the decimal separator).
Create a template card that shows the aforementioned entity.
The screenshot below first shows the default HA entity card, which displays the decimal separator as expected, followed by the template card, which uses the incorrect decimal separator. (Additionally, it also doesn't appear to take precision into account as set in the HA UI, about which I commented here.)
In addition to the decimal separator not using the user's locale, the thousands separator is completely missing:
Lovelace mushroom to the left, HA Core Entity to the right
It should've been a single . in my own selected locale, or , if it was defaulting to my language setting (English GB). However there appears to be no thousands separators at all.
Another issue related to this: when a relative time is displayed (e.g. "In 4 hours"), English words like "hours" and "minutes" will be used instead of deferring to the UI language.
Requirements
Current Behavior
If an entity has a floating point value, it looks like the template card will always use the period (".") as the decimal separator.
Expected Behavior
Some locales use a comma as the decimal separator (","). Mushroom should use the separator as dictated by the selected locale in HA. In my case, since I'm using my HA environment in Dutch (nl-NL), where "," is used as the decimal separator, Mushroom should inherit this.
Steps To Reproduce
The screenshot below first shows the default HA entity card, which displays the decimal separator as expected, followed by the template card, which uses the incorrect decimal separator. (Additionally, it also doesn't appear to take precision into account as set in the HA UI, about which I commented here.)
Context
No response
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: