Skip to content

Commit 2f5cc5d

Browse files
committed
feat: Q7 Get battery level
1 parent a36a956 commit 2f5cc5d

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

roborock/data/b01_q7/b01_q7_containers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ class B01Props(RoborockBase):
115115
water: WaterLevelMapping | None = None
116116
mode: CleanTypeMapping | None = None
117117
quantity: int | None = None
118+
battery: int | None = None
118119
alarm: int | None = None
119120
volume: int | None = None
120121
hypa: int | None = None

roborock/devices/traits/b01/q7/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def set_clean_path_preference(self, preference: CleanPathPreferenceMapping
8484
async def set_repeat_state(self, repeat: CleanRepeatMapping) -> None:
8585
"""Set the cleaning repeat state (cycles)."""
8686
await self.set_prop(RoborockB01Props.REPEAT_STATE, repeat.code)
87-
87+
8888
async def start_clean(self) -> None:
8989
"""Start cleaning."""
9090
await self.send(

roborock/roborock_message.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ class RoborockB01Props(StrEnum):
165165
WATER = "water"
166166
MODE = "mode"
167167
QUANTITY = "quantity"
168+
BATTERY = "quantity"
168169
ALARM = "alarm"
169170
VOLUME = "volume"
170171
HYPA = "hypa"

0 commit comments

Comments
 (0)