Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double code in const.py and xxx.py #35

Closed
Crashman1983 opened this issue Nov 21, 2022 · 5 comments
Closed

Double code in const.py and xxx.py #35

Crashman1983 opened this issue Nov 21, 2022 · 5 comments
Assignees

Comments

@Crashman1983
Copy link
Contributor

Sensors for example are partly doubled within const.py and sensors.py This is error-prone and maintenance-intensive. What's the reason for it?

@BenPru
Copy link
Owner

BenPru commented Nov 22, 2022

Oh yes, the part in const was a try to fulfill the ha core requirements and provide this hacs module as ha module.
In the next time I will try to move the const part in a seperate branch for "future use".

@BenPru BenPru self-assigned this Nov 22, 2022
@Crashman1983
Copy link
Contributor Author

Why did they not accept it? What has to be done to make it an official integration?

@BenPru
Copy link
Owner

BenPru commented Nov 24, 2022

Why did they not accept it? What has to be done to make it an official integration?

See the comments from frenk: Add new integration luxtronik
#59788

  • This integration would benefit from using SensorEntityDescriptions instead of passing in all the info.

  • I would recommend to rebase this PR onto the latest dev before continuing development on this integration.

  • Allow more than one instance of the integration --> Support for multiple Heatpumps #16

  • Every pull request can only contain one platform (sensor, binary_, ...)

  • Translations should not be an integration task

But the sensor names currently could not translated with home assistant himself!

Many things... :-(

@Kars-de-Jong
Copy link
Contributor

Kars-de-Jong commented Nov 25, 2022

Translation is done through Localise, see Contributing Translation. That's why they shouldn't be included in your PR.

You should create a strings.json file, it contains translations for different things that the integration offers that need to be translated.

But in general in Home Assistant, I believe friendly names for entities are in English, translating them is up to the user. There indeed doesn't seem to be a mechanism in place for translating those.

@BenPru
Copy link
Owner

BenPru commented Jan 26, 2023

Should be fixed in the future with the new integration.

@BenPru BenPru closed this as completed Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants