computeStateDisplayFromEntityAttributes to support different word endings for binary states #25209
-
The formatting of an entity's binary state via In this screenshot, a window in the room "Kontor" is opened. The correct state label for that would be "öppet" as in "the window is öppet". However, if it would have been a door, "öppen" would have been appropriate as in "the door is öppen". I'm happy to help out, but I would need some guidance on how to go about this change as I think there's not a clear easy way forward. As the binary sensor is labeled as being a door or a window in this case, the function could use different labels for that. But that would just solve this exact case. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It turned out to be a faulty translation. There was a bit of rewriting of the translation key taking place, making it a bit harder to find, but here's the key in Lokalise: |
Beta Was this translation helpful? Give feedback.
It turned out to be a faulty translation. There was a bit of rewriting of the translation key taking place, making it a bit harder to find, but here's the key in Lokalise:
https://app.lokalise.com/project/130246255a974bd3b5e8a1.51616605/?view=single&reference_lang_id=640&single_lang_id=754&search=component::binary_sensor::entity_component::window