Skip to content

Conversation

Lash-L
Copy link
Collaborator

@Lash-L Lash-L commented Aug 13, 2025

I think the next step is to make a B1Channel that does the decoding and handles things for the device? I would like your opinion, as B01 does not have response matching.

@Lash-L Lash-L requested a review from allenporter August 13, 2025 20:17
@Lash-L Lash-L requested a review from allenporter August 16, 2025 17:52
Copy link
Contributor

@allenporter allenporter left a comment

Choose a reason for hiding this comment

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

Generally looks fine, just a question

@dataclass
class RoborockBase:
_ignore_keys = [] # type: ignore
_registry: ClassVar[dict[str, type["RoborockBase"]]] = {}
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this needed for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's part of the fix to get roborockbase working on objects not in containers.py

Open to other solutions as well

Copy link
Contributor

Choose a reason for hiding this comment

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

What does it do and how does it work?

I think just removing from __future__ import annotations from that file will make things work.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Believe you are correct. Annotations must have been there before and this fixed it while it was. This works without registry now though so I deleted it

@Lash-L Lash-L requested a review from allenporter August 24, 2025 15:55
@Lash-L Lash-L merged commit 5ef1cd8 into main Aug 24, 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