⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

fix: set unique sequence numbers on outgoing messages#300

Merged
allenporter merged 1 commit intoPython-roborock:mainfrom
allenporter:wait-queue
Jan 21, 2025
Merged

fix: set unique sequence numbers on outgoing messages#300
allenporter merged 1 commit intoPython-roborock:mainfrom
allenporter:wait-queue

Conversation

@allenporter
Copy link
Contributor

@allenporter allenporter commented Jan 21, 2025

Fix the message constructors to use a factory rather than a fixed constant. The bug is that the function is called only once, rather than on every construction. Add a test to verify that the messages are initialized with unique values.

Issue #228
Issue #222

Lash-L
Lash-L previously approved these changes Jan 21, 2025
@allenporter
Copy link
Contributor Author

I think this fix may explain most of the issues we're seeing like home-assistant/core#129582 or the invalidate state id since its assigning the same number to all requests.

@allenporter allenporter merged commit 14f03c7 into Python-roborock:main Jan 21, 2025
6 checks passed
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.

2 participants