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

@ -24,7 +24,7 @@ from homeassistant.components.vacuum import (
STATE_DOCKED,
STATE_ERROR,
)
from homeassistant.const import ATTR_ENTITY_ID, STATE_UNAVAILABLE
from homeassistant.const import ATTR_ENTITY_ID
from homeassistant.core import HomeAssistant
from homeassistant.util.dt import utcnow
@ -62,19 +62,6 @@ async def test_vacuum_status_when_sleeping(
assert vacuum.attributes.get(ATTR_STATUS) == "Ready (Sleeping)"
async def test_vacuum_state_when_not_recently_seen(
hass: HomeAssistant, mock_account_with_robot_not_recently_seen: MagicMock
) -> None:
"""Tests the vacuum state when not seen recently."""
await setup_integration(
hass, mock_account_with_robot_not_recently_seen, PLATFORM_DOMAIN
)
vacuum = hass.states.get(VACUUM_ENTITY_ID)
assert vacuum
assert vacuum.state == STATE_UNAVAILABLE
async def test_no_robots(
hass: HomeAssistant, mock_account_with_no_robots: MagicMock
) -> None: