mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Fix litterrobot vacuum base class (#58765)
This commit is contained in:
parent
f87f72bb8e
commit
d6e49bc5bc
@ -17,7 +17,7 @@ from homeassistant.components.vacuum import (
|
|||||||
SUPPORT_STATUS,
|
SUPPORT_STATUS,
|
||||||
SUPPORT_TURN_OFF,
|
SUPPORT_TURN_OFF,
|
||||||
SUPPORT_TURN_ON,
|
SUPPORT_TURN_ON,
|
||||||
VacuumEntity,
|
StateVacuumEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import STATE_OFF
|
from homeassistant.const import STATE_OFF
|
||||||
@ -75,7 +75,7 @@ async def async_setup_entry(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class LitterRobotCleaner(LitterRobotControlEntity, VacuumEntity):
|
class LitterRobotCleaner(LitterRobotControlEntity, StateVacuumEntity):
|
||||||
"""Litter-Robot "Vacuum" Cleaner."""
|
"""Litter-Robot "Vacuum" Cleaner."""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -148,4 +148,5 @@ class LitterRobotCleaner(LitterRobotControlEntity, VacuumEntity):
|
|||||||
"power_status": self.robot.power_status,
|
"power_status": self.robot.power_status,
|
||||||
"status_code": self.robot.status_code,
|
"status_code": self.robot.status_code,
|
||||||
"last_seen": self.robot.last_seen,
|
"last_seen": self.robot.last_seen,
|
||||||
|
"status": self.status,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user