Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
smmoroz committed Jan 9, 2024
1 parent e993781 commit f0d79b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def water_level(self) -> Optional[int]:
0 - empty/min, 1 - normal, 2 - full/max
"""
water_level = self.data["water_level"]
return {0: "0", 1: "50", 2: "100"}.get(water_level)
return {0: 0, 1: 50, 2: 100}.get(water_level)

Check warning on line 146 in miio/integrations/zhimi/humidifier/airhumidifier_miot_ca6.py

View check run for this annotation

Codecov / codecov/patch

miio/integrations/zhimi/humidifier/airhumidifier_miot_ca6.py#L145-L146

Added lines #L145 - L146 were not covered by tests

@property
def dry(self) -> Optional[bool]:
Expand Down

0 comments on commit f0d79b5

Please sign in to comment.