mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
parent
4293c88fb6
commit
9b0b8ae9c0
@ -318,11 +318,12 @@ class VacuumEntity(_BaseVacuum, ToggleEntity):
|
|||||||
"""Representation of a vacuum cleaner robot."""
|
"""Representation of a vacuum cleaner robot."""
|
||||||
|
|
||||||
entity_description: VacuumEntityDescription
|
entity_description: VacuumEntityDescription
|
||||||
|
_attr_status: str | None = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def status(self) -> str | None:
|
def status(self) -> str | None:
|
||||||
"""Return the status of the vacuum cleaner."""
|
"""Return the status of the vacuum cleaner."""
|
||||||
return None
|
return self._attr_status
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def battery_icon(self) -> str:
|
def battery_icon(self) -> str:
|
||||||
@ -394,11 +395,12 @@ class StateVacuumEntity(_BaseVacuum):
|
|||||||
"""Representation of a vacuum cleaner robot that supports states."""
|
"""Representation of a vacuum cleaner robot that supports states."""
|
||||||
|
|
||||||
entity_description: StateVacuumEntityDescription
|
entity_description: StateVacuumEntityDescription
|
||||||
|
_attr_state: str | None = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def state(self) -> str | None:
|
def state(self) -> str | None:
|
||||||
"""Return the state of the vacuum cleaner."""
|
"""Return the state of the vacuum cleaner."""
|
||||||
return None
|
return self._attr_state
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def battery_icon(self) -> str:
|
def battery_icon(self) -> str:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user