mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Drop operating mode property in sharkiq (#132097)
This commit is contained in:
@@ -150,12 +150,6 @@ class SharkVacuumEntity(CoordinatorEntity[SharkIqUpdateCoordinator], StateVacuum
|
|||||||
return None
|
return None
|
||||||
return self.sharkiq.error_text
|
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
|
@property
|
||||||
def recharging_to_resume(self) -> int | None:
|
def recharging_to_resume(self) -> int | None:
|
||||||
"""Return True if vacuum set to recharge and resume cleaning."""
|
"""Return True if vacuum set to recharge and resume cleaning."""
|
||||||
@@ -171,7 +165,8 @@ class SharkVacuumEntity(CoordinatorEntity[SharkIqUpdateCoordinator], StateVacuum
|
|||||||
"""
|
"""
|
||||||
if self.sharkiq.get_property_value(Properties.CHARGING_STATUS):
|
if self.sharkiq.get_property_value(Properties.CHARGING_STATUS):
|
||||||
return STATE_DOCKED
|
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
|
@property
|
||||||
def available(self) -> bool:
|
def available(self) -> bool:
|
||||||
|
Reference in New Issue
Block a user