Skip to content

Add support for Q10 diagnostics data - #909

Open
allenporter wants to merge 1 commit into
Python-roborock:mainfrom
allenporter:fix-q10-diagnostics-display
Open

Add support for Q10 diagnostics data#909
allenporter wants to merge 1 commit into
Python-roborock:mainfrom
allenporter:fix-q10-diagnostics-display

Conversation

@allenporter

Copy link
Copy Markdown
Contributor

This PR exposes state-holding properties for Q10 devices in diagnostic_data(). Maps are included but large binary fields (image_content, map_data) are filtered out.

@allenporter
allenporter marked this pull request as draft July 31, 2026 15:02
@allenporter allenporter changed the title Fix Q10 diagnostics display in Home Assistant Add support for Q10 diagnostics data Jul 31, 2026
@allenporter
allenporter force-pushed the fix-q10-diagnostics-display branch from 026b165 to 87d9c21 Compare July 31, 2026 15:06
@allenporter
allenporter force-pushed the fix-q10-diagnostics-display branch from 87d9c21 to c9349b2 Compare July 31, 2026 15:13
@allenporter
allenporter marked this pull request as ready for review July 31, 2026 15:39
@allenporter
allenporter requested a review from Lash-L July 31, 2026 15:39

def as_dict(self, exclude: set[str] | None = None) -> dict[str, Any]:
"""Return the trait data as a dictionary, excluding large binary data."""
import dataclasses

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should probably just be top of the file right?

Comment on lines +169 to +170
if isinstance(value, RoborockBase):
result[name] = value.as_dict()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is going to grab all of the traits right? This will duplicate map I think? As MapDpsTrait(MapDps, UpdatableTrait) -> MapDps(RoborockBase)

Any of these traits have info we don't want in diagnostics? Not as familiar with them but there might be ssid. I don't recall if diagnostics auto filters out a lot of this

@Lash-L

Lash-L commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Previously missed this one - sorry!

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