GithubHelp home page GithubHelp logo

Feature request: Languages about ha-snowtire HOT 7 CLOSED

limych avatar limych commented on July 24, 2024
Feature request: Languages

from ha-snowtire.

Comments (7)

Limych avatar Limych commented on July 24, 2024

It's just a binary sensor. How do you imagine adding translations?

from ha-snowtire.

nagyrobi avatar nagyrobi commented on July 24, 2024

The names. Snowtire, Winter, Summer, these would be nice to appear in my own language, not English.

from ha-snowtire.

Limych avatar Limych commented on July 24, 2024

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.

nagyrobi avatar nagyrobi commented on July 24, 2024

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.

Limych avatar Limych commented on July 24, 2024

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.

nagyrobi avatar nagyrobi commented on July 24, 2024

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.

github-actions avatar github-actions commented on July 24, 2024

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 (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.