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

the permanent error after a random disconnection #2

Open
marek-veber opened this issue Oct 6, 2024 · 0 comments
Open

the permanent error after a random disconnection #2

marek-veber opened this issue Oct 6, 2024 · 0 comments

Comments

@marek-veber
Copy link

marek-veber commented Oct 6, 2024

Hi, I'm using this nice library in home-assistant, but I found (and solved) an issue after a disconnection there.

See: blindlight86/HA_USR-R16#5

The problem can be solved by updating handle_disconnect_callback function:

$ diff protocol-old.py protocol.py 
293a294,296
>         self.active_transaction = None
>         self.in_transaction = False
>         self.active_packet = None

I will create a pull request with the fix.

@marek-veber marek-veber changed the title error after disconnection error after an disconnection Oct 6, 2024
@marek-veber marek-veber changed the title error after an disconnection error after a disconnection Oct 6, 2024
@marek-veber marek-veber changed the title error after a disconnection the permanent error after a random disconnection Oct 6, 2024
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

1 participant