Comments (7)
It's just a binary sensor. How do you imagine adding translations?
from ha-snowtire.
The names. Snowtire, Winter, Summer, these would be nice to appear in my own language, not English.
from ha-snowtire.
English are not my own language too.
The sensor name — "Snowtire" — is just default value. You are free to set any other sensor name your choose.
The sensor, as I said, is binary. It only returns one of two values: "On" or "Off". We cannot change this.
The values "Winter" and "Summer" are used only within the "tire_type" attribute. This attribute was added only for the convenience of understanding the main status — its value directly depends on the main status.
The most that can make sense is to translate these two words. But I'm not sure if it's worth doing. Since this will interfere with the visualization of the sensor and will violate the principle of separating the main logic of the sensor and visualization for the user.
From our discussion with you, I, however, had the idea that it is possible to change the values of the sensor states from "On" / "Off" to "Winter" / "Summer". Then the attribute will become unnecessary.
from ha-snowtire.
You are free to set any other sensor name your choose.
I am aware that I can chance the py files myself but an update would kill that.
from ha-snowtire.
You misunderstood. The name of the sensor is changed through the settings via the “name” field. You do not need to change the component code for this.
https://github.com/Limych/ha-snowtire#configuration-variables
from ha-snowtire.
Oops sorry I didn't read below the patreon advert.
The "Winter" and "Summer" would be nice to be customizable the same way, though. And having these instead of On/Off would be just great.
from ha-snowtire.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from ha-snowtire.
Related Issues (15)
- Temperature utility deprecated since HA 2022.10, will stop working in 2023.4 HOT 5
- Error conf 2023.11.0 HOT 1
- Where dit i go wrong with config.
- HA 2024.1.0 deprecations HOT 1
- The method for providing platform translations has changed in Home Assistant Core HOT 1
- Broken on HA 2024.4.0b0
- Deprecated call HA 2024.5
- Do you want me to add GitHub actions? HOT 1
- Polish translation not available in version 1.2.0 (missing file). HOT 3
- Add German Translation HOT 2
- binary_sensor.snowtire_x HOT 1
- Add summer icon to sensor HOT 1
- Dutch Translation HOT 1
- Not available in HACS HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-snowtire.