Skip to content

Commit 3259338

Browse files
authored
Merge branch 'main' into leo/q7-map-content-followup
2 parents 1bfc839 + 1ac5913 commit 3259338

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
<!-- version list -->
44

5+
## v4.26.0 (2026-03-19)
6+
7+
### Features
8+
9+
- Q7 Get battery level ([#790](https://github.com/Python-roborock/python-roborock/pull/790),
10+
[`91efb3b`](https://github.com/Python-roborock/python-roborock/commit/91efb3b0be3122490c362a8e2ecc1192bb98bee6))
11+
12+
513
## v4.25.0 (2026-03-16)
614

715
### Chores

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "python-roborock"
3-
version = "4.25.0"
3+
version = "4.26.0"
44
description = "A package to control Roborock vacuums."
55
authors = [{ name = "humbertogontijo", email = "humbertogontijo@users.noreply.github.com" }, {name="Lash-L"}, {name="allenporter"}]
66
requires-python = ">=3.11, <4"

roborock/data/b01_q7/b01_q7_containers.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class B01Props(RoborockBase):
114114
wind: SCWindMapping | None = None
115115
water: WaterLevelMapping | None = None
116116
mode: CleanTypeMapping | None = None
117-
quantity: int | None = None
117+
quantity: int | None = None # The Q7 L5 reports its battery level as 'quantity'
118118
alarm: int | None = None
119119
volume: int | None = None
120120
hypa: int | None = None
@@ -169,6 +169,13 @@ class B01Props(RoborockBase):
169169
recommend: Recommend | None = None
170170
add_sweep_status: int | None = None
171171

172+
@property
173+
def battery(self) -> int | None:
174+
"""
175+
Returns device battery level as a percentage.
176+
"""
177+
return self.quantity
178+
172179
@property
173180
def main_brush_time_left(self) -> int | None:
174181
"""

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)