这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@andrexp
Copy link
Contributor

@andrexp andrexp commented Aug 23, 2023

fingerprint codes seem also be sent in decimal (as remote control codes) by PC(H)K. The current version of the binding only accepts .ZFmmnnoo codes. This fix supports both .ZFmmnnoo or .ZFmmmnnnooo in decimal.

Andre Jendrysseck and others added 2 commits August 23, 2023 10:56
@andrexp andrexp requested a review from fwolter as a code owner August 23, 2023 08:59
Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
Copy link
Member

@fwolter fwolter left a comment

Choose a reason for hiding this comment

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

@andrexp
Copy link
Contributor Author

andrexp commented Aug 23, 2023

Thanks for your contribution! Could you add a test case checking the new pattern? https://github.com/openhab/openhab-addons/tree/main/bundles/org.openhab.binding.lcn/src/test/java/org/openhab/binding/lcn/internal/subhandler

I can't find the right file for the test cases for the "code" subhandler. Where are the existing test cases for the other (old fingerprint) code patterns?

@fwolter
Copy link
Member

fwolter commented Aug 23, 2023

I'm afraid there is none. I don't know why it is missing as all other subhandler do have tests... Maybe I omitted them because I don't have access to a fingerprint sensor and couldn't generate these PCK messages. Can you add a new test file? You can raise your hand if you need any help!

@wborn wborn added the bug An unexpected problem or unintended behavior of an add-on label Aug 26, 2023
@andrexp andrexp requested a review from a team as a code owner August 29, 2023 20:59
Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
@andrexp
Copy link
Contributor Author

andrexp commented Aug 29, 2023

Done, but I have only added the required test for my edits on the code-subhandler. May someone should add the left-over code types as from UT and RT?? I think for this PR this should be not necessary.

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
Copy link
Member

@fwolter fwolter left a comment

Choose a reason for hiding this comment

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

Thank you, LGTM!

@fwolter fwolter merged commit 5e8e097 into openhab:main Sep 4, 2023
Pshatsillo pushed a commit to Pshatsillo/openhab-addons that referenced this pull request Sep 29, 2023
…cimal (openhab#15488)

* fixed problems with fingerprint codes which were received in decimal instead of hex

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

* correct format issues

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

* add test file for fingerprint codes

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

* Delete openhab-addons.code-workspace

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

---------

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
Co-authored-by: Andre Jendrysseck <ajendry@gwdg.de>
@wborn wborn added this to the 4.1 milestone Oct 8, 2023
querdenker2k pushed a commit to querdenker2k/openhab-addons that referenced this pull request Oct 21, 2023
…cimal (openhab#15488)

* fixed problems with fingerprint codes which were received in decimal instead of hex

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

* correct format issues

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

* add test file for fingerprint codes

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

* Delete openhab-addons.code-workspace

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

---------

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
Co-authored-by: Andre Jendrysseck <ajendry@gwdg.de>
querdenker2k pushed a commit to querdenker2k/openhab-addons that referenced this pull request Oct 29, 2023
…cimal (openhab#15488)

* fixed problems with fingerprint codes which were received in decimal instead of hex

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

* correct format issues

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

* add test file for fingerprint codes

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

* Delete openhab-addons.code-workspace

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

---------

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
Co-authored-by: Andre Jendrysseck <ajendry@gwdg.de>
Signed-off-by: querdenker2k <querdenker2k@gmx.de>
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
…cimal (openhab#15488)

* fixed problems with fingerprint codes which were received in decimal instead of hex

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

* correct format issues

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

* add test file for fingerprint codes

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

* Delete openhab-addons.code-workspace

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>

---------

Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
Co-authored-by: Andre Jendrysseck <ajendry@gwdg.de>
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

bug An unexpected problem or unintended behavior of an add-on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants