Remove logic to mark litterrobot vacuum entity as unavailable (#73234)
This commit is contained in:
parent
e4f354998d
commit
21cfbe875e
3 changed files with 1 additions and 31 deletions
|
@ -1,7 +1,6 @@
|
|||
"""Support for Litter-Robot "Vacuum"."""
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import datetime, timedelta, timezone
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
|
@ -46,7 +45,6 @@ LITTER_BOX_STATUS_STATE_MAP = {
|
|||
LitterBoxStatus.CAT_SENSOR_INTERRUPTED: STATE_PAUSED,
|
||||
LitterBoxStatus.OFF: STATE_OFF,
|
||||
}
|
||||
UNAVAILABLE_AFTER = timedelta(minutes=30)
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
|
@ -96,11 +94,6 @@ class LitterRobotCleaner(LitterRobotControlEntity, StateVacuumEntity):
|
|||
| VacuumEntityFeature.TURN_ON
|
||||
)
|
||||
|
||||
@property
|
||||
def available(self) -> bool:
|
||||
"""Return True if the cleaner has been seen recently."""
|
||||
return self.robot.last_seen > datetime.now(timezone.utc) - UNAVAILABLE_AFTER
|
||||
|
||||
@property
|
||||
def state(self) -> str:
|
||||
"""Return the state of the cleaner."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue