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

fix: Fix pairing of Legrand devices failing #7228

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

Koenkk
Copy link
Owner

@Koenkk Koenkk commented Mar 17, 2024

@sjorge
Copy link
Sponsor Contributor

sjorge commented Mar 17, 2024

tsc is not willing to build this

Edit: nvm, I just needed to like my zh repo with the change before running npm run build

@sjorge
Copy link
Sponsor Contributor

sjorge commented Mar 17, 2024

With the way it is done now, I guess we could also move this to a modernExtend we attach to all legrand/biticino/netamo devices ?

And if we move the Aqara feeder one too the onEvent in index.ts would not be needed.

@Koenkk
Copy link
Owner Author

Koenkk commented Mar 17, 2024

I guess we could also move this to a modernExtend we attach to all legrand/biticino/netamo devices ?

We cannot, since this happen before interview finishes (until interview finishes, it is not linked against a definition).

Does the fix work?

@sjorge
Copy link
Sponsor Contributor

sjorge commented Mar 17, 2024

Ah good point! We need it during interviewing too!

Yes, this code as is works.

@Koenkk
Copy link
Owner Author

Koenkk commented Mar 17, 2024

Great, will fix the tests and merge this.

@Koenkk Koenkk merged commit 8c36b33 into master Mar 19, 2024
3 checks passed
@Koenkk Koenkk deleted the fix/legrand-security-customreadresponse branch March 19, 2024 20:52
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

Successfully merging this pull request may close these issues.

Move special readResponse out of zhc/src/index.ts (fixes legrand pairing issues)
2 participants