Skip to content

Commit

Permalink
Drop operating mode property in sharkiq (#132097)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST authored Dec 2, 2024
1 parent 5dadabe commit 03be1b9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions homeassistant/components/sharkiq/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,6 @@ def error_message(self) -> str | None:
return None
return self.sharkiq.error_text

@property
def operating_mode(self) -> str | None:
"""Operating mode."""
op_mode = self.sharkiq.get_property_value(Properties.OPERATING_MODE)
return OPERATING_STATE_MAP.get(op_mode)

@property
def recharging_to_resume(self) -> int | None:
"""Return True if vacuum set to recharge and resume cleaning."""
Expand All @@ -171,7 +165,8 @@ def state(self) -> str | None:
"""
if self.sharkiq.get_property_value(Properties.CHARGING_STATUS):
return STATE_DOCKED
return self.operating_mode
op_mode = self.sharkiq.get_property_value(Properties.OPERATING_MODE)
return OPERATING_STATE_MAP.get(op_mode)

@property
def available(self) -> bool:
Expand Down

0 comments on commit 03be1b9

Please sign in to comment.