Open NoRi2909 opened 6 days ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (sensor
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
sensor documentation sensor source (message by IssueLinks)
The problem
When creating a Trend helper this also allows to reference several sensor attributes. So far only
last_reset
,options
andstate_class
have defined names that get localized in the frontend:https://github.com/home-assistant/core/blob/9711816542b581d7c40a3d69668c3711d5af7c23/homeassistant/components/sensor/strings.json#L119-L127
Any other attributes do not have an entry here so the show up in English only:
Perhaps a few more of the most common attributes like
device_class
,friendly_name
andunit_of_measurement
could be added to the list so the frontend can display them with translated names.What version of Home Assistant Core has the issue?
core-2024.11.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Sensor
Link to integration documentation on our website
https://www.home-assistant.io/integrations/sensor/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response