Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions roborock/devices/traits/v1/map_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ class MapContent(RoborockBase):
map_data: MapData | None = None
"""The parsed map data which contains metadata for points on the map."""

def __repr__(self) -> str:
"""Return a string representation of the MapContent."""
img = self.image_content
if self.image_content and len(self.image_content) > 20:
img = f"{self.image_content[:17]}..."
Comment thread
allenporter marked this conversation as resolved.
Outdated
return f"MapContent(image_content={img!r}, map_data={self.map_data!r})"

@common.map_rpc_channel
class MapContentTrait(MapContent, common.V1TraitMixin):
Expand Down
Loading