We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fc7200 commit 32de01fCopy full SHA for 32de01f
roborock/devices/traits/v1/map_content.py
@@ -23,6 +23,12 @@ class MapContent(RoborockBase):
23
map_data: MapData | None = None
24
"""The parsed map data which contains metadata for points on the map."""
25
26
+ def __repr__(self) -> str:
27
+ """Return a string representation of the MapContent."""
28
+ img = self.image_content
29
+ if self.image_content and len(self.image_content) > 20:
30
+ img = f"{self.image_content[:17]}..."
31
+ return f"MapContent(image_content={img!r}, map_data={self.map_data!r})"
32
33
@common.map_rpc_channel
34
class MapContentTrait(MapContent, common.V1TraitMixin):
0 commit comments