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.
depth
1 parent f76ae70 commit 9d3fb33Copy full SHA for 9d3fb33
1 file changed
miio/airhumidifier.py
@@ -199,8 +199,9 @@ def water_level(self) -> Optional[int]:
199
200
If water tank is full, depth is 125.
201
"""
202
- if self.depth is not None and self.depth <= 125:
203
- return int(self.depth / 1.25)
+ depth = self.data.get("depth")
+ if depth is not None and depth <= 125:
204
+ return int(depth / 1.25)
205
return None
206
207
@property
0 commit comments