The thermostat is French (it’s a Netatmo), my UI is in French. How can I rename the two circled pre-sets to “Hors-gel” and “Planning” ?
I don’t mind renaming them at the device-level or the card-level.
Edwin_D
(Edwin D.)
October 17, 2024, 5:18pm
2
I don’t think you can do that by yourself without creating a full blown new template climate entity, using a custom integration. Maybe you can by contributing to translations for Home Assistant.
Translations for Home Assistant are managed through Lokalise, an online translation management tool. Our translations are split between four projects: a backend project for platform-specific translations, a frontend project for UI translations, and...
Thanks @Edwin_D for the suggestion. I couldn’t fix it by joining the backend translation team , so I opened a GitHub issue with what I found
opened 06:29PM - 17 Oct 24 UTC
### The problem
@cgtobi Hi Tobias
I encountered an issue with two presets … of the Netatmo Thermostat: they're not translated
![image](https://github.com/user-attachments/assets/43013390-5f0a-4f1b-aded-c7dd8c35f5cb)
In the [climate.py](https://github.com/home-assistant/core/blob/536d702d96af511fc958e925fb3f5f7293f284f3/homeassistant/components/netatmo/climate.py#L61), it seems you import some presets from HA's climate component, that are translated:
![image](https://github.com/user-attachments/assets/350f2bca-ee1b-422f-8044-867b9b45f806)
And you define some with hard-coded names:
![image](https://github.com/user-attachments/assets/36118ba7-cfd3-4e2f-acc6-6aaddb1ff65d)
### What version of Home Assistant Core has the issue?
core-2024.10.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
Netatmo
### Link to integration documentation on our website
https://github.com/home-assistant/core/tree/536d702d96af511fc958e925fb3f5f7293f284f3/homeassistant/components/netatmo
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
I'd like to offer the following translations for French:
PRESET_FROST_GUARD = "Hors-gel"
PRESET_SCHEDULE = "Planning"
PRESET_MANUAL = "Manuel"
Translations for frost guard and schedule are what the Netatmo app calls them. There is no manual mode, though, I'm not sure what this is referring to.
I see they're missing icons as well. For `PRESET_FROST_GUARD = "Hors-gel"`, I would suggest `mdi:snowflake` and for `PRESET_SCHEDULE = "Planning"`, I would suggest `mdi:calendar-month`