Remove logic to mark litterrobot vacuum entity as unavailable (#73234)

This commit is contained in:
Nathan Spencer 2022-06-10 15:16:47 -06:00 committed by GitHub
parent e4f354998d
commit 21cfbe875e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 31 deletions

View file

@ -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."""