mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Swap sharkiq vacuum is_docked with is_charging (#58975)
This commit is contained in:
parent
32784d1b83
commit
74beebc031
@ -138,11 +138,6 @@ class SharkVacuumEntity(CoordinatorEntity, StateVacuumEntity):
|
||||
"""Flag vacuum cleaner robot features that are supported."""
|
||||
return SUPPORT_SHARKIQ
|
||||
|
||||
@property
|
||||
def is_docked(self) -> bool | None:
|
||||
"""Is vacuum docked."""
|
||||
return self.sharkiq.get_property_value(Properties.DOCKED_STATUS)
|
||||
|
||||
@property
|
||||
def error_code(self) -> int | None:
|
||||
"""Return the last observed error code (or None)."""
|
||||
@ -175,7 +170,7 @@ class SharkVacuumEntity(CoordinatorEntity, StateVacuumEntity):
|
||||
In the app, these are (usually) handled by showing the robot as stopped and sending the
|
||||
user a notification.
|
||||
"""
|
||||
if self.is_docked:
|
||||
if self.sharkiq.get_property_value(Properties.CHARGING_STATUS):
|
||||
return STATE_DOCKED
|
||||
return self.operating_mode
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user