Skip to content

Conversation

@Lash-L
Copy link
Collaborator

@Lash-L Lash-L commented Dec 19, 2025

Accidentally based on top of the Q7 work. Will finish that and then rebase this

@Lash-L Lash-L changed the title feat: add some basic setters for q7 feat: add some basic support for q10 Dec 19, 2025
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.

I think it would be helpful to try to break this down into the smaller parts. Having the overall big picture is helpful but i think we can review and merge faster doing one chunk at a time?

If there are major changes influencing the design here worth calling out let me know.

if self._unsub:
self._unsub()
self._unsub = None
close_trait = getattr(self._trait, "close", None)
Copy link
Contributor

Choose a reason for hiding this comment

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

I would say add this to the trait protoocl and make it a no-op for the others.

def _on_message(self, message: RoborockMessage) -> None:
"""Handle incoming messages from the device."""
self._logger.debug("Received message from device: %s", message)
on_message = getattr(self._trait, "on_message", None)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let the trait add their own callback.

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.

3 participants