Feature/fix invalid command edge cases? #656
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
My apologies if this PR is trash, but I noticed suddenly on the latest HA / zigpy / bellows update that my hacked Lidl Gateway stopped connecting. I checked the socket IP / Port and it worked fine so during the log checking, I noticed that there was an error.
I don't really know anything about this protocol, so I'm not sure if this will cause an issue for other people (presumably not), but anyone else with the same issue might be able to use this as a reference.
The error that was occurring was the following:
After adding the alt command to accept 0x0100, the same error happemed for each of the subsequent device info responses (e.g. build string, flow_control_type, etc).
The changes in this PR resolved the issue for me, obviously if I update, I'll lose them again (I can re-patch of course).
I would love to learn more about the protocol / transaction, so if there's anything I can do to improve this please let me know.