Skip to content

Commit

Permalink
Fix return type of is_water_box_attached
Browse files Browse the repository at this point in the history
Co-Authored-By: Teemu R. <tpr@iki.fi>
  • Loading branch information
ckesc and rytilahti authored Apr 19, 2020
1 parent 8ac2e3a commit 7b6360a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miio/vacuumcontainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def is_on(self) -> bool:
)

@property
def is_water_box_attached(self) -> int:
def is_water_box_attached(self) -> bool:
"""Return True is water box is installed."""
return "water_box_status" in self.data and self.data["water_box_status"] == 1

Expand Down

0 comments on commit 7b6360a

Please # to comment.