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

[knx] Refactor manufacturer map #15297

Merged
merged 2 commits into from
Jul 24, 2023
Merged

[knx] Refactor manufacturer map #15297

merged 2 commits into from
Jul 24, 2023

Conversation

J-N-K
Copy link
Member

@J-N-K J-N-K commented Jul 23, 2023

This makes adding new manufacturers easy and is the last improvement that was missing for the re-integration of the KNX binding.

This makes adding new manufacturers easy.

Signed-off-by: Jan N. Klug <github@klug.nrw>
@J-N-K J-N-K added the enhancement An enhancement or new feature for an existing add-on label Jul 23, 2023
Copy link
Member

@holgerfriedrich holgerfriedrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @J-N-K, for completing this.
I am missing 2 manufacturers which are not contained in the new file:

34 = eVoKNX
373 = ZF Friedrichshafen AG

@holgerfriedrich
Copy link
Member

Did you consider smarthomej/addons#371?
The helper function readProperties from commons seems a bit different, e.g. regarding error handling.

Signed-off-by: Jan N. Klug <github@klug.nrw>
@J-N-K
Copy link
Member Author

J-N-K commented Jul 24, 2023

The other code is more generic and there are more things that can go wrong. I omitted the error handling for cases that cannot occur in this version.

Copy link
Member

@holgerfriedrich holgerfriedrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for clarification, LGTM

@holgerfriedrich holgerfriedrich linked an issue Jul 24, 2023 that may be closed by this pull request
30 tasks
Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jlaur jlaur merged commit 4c9f207 into openhab:main Jul 24, 2023
@jlaur jlaur added this to the 4.1 milestone Jul 24, 2023
@J-N-K J-N-K deleted the knx branch July 24, 2023 21:14
Pshatsillo pushed a commit to Pshatsillo/openhab-addons that referenced this pull request Sep 29, 2023
* [knx] Refactor manufacturer map

This makes adding new manufacturers easy.

Signed-off-by: Jan N. Klug <github@klug.nrw>
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
* [knx] Refactor manufacturer map

This makes adding new manufacturers easy.

Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[knx] Backport SmartHome/J enhancements and fixes
3 participants