Skip to content

Commit

Permalink
Litterrobot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST committed Oct 13, 2024
1 parent bd7cc34 commit 179c0c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/components/litterrobot/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from homeassistant.components.vacuum import (
DOMAIN as VACUUM_DOMAIN,
SERVICE_START,
STATE_DOCKED,
VacuumEntityState,
)
from homeassistant.config_entries import ConfigEntryState
from homeassistant.const import ATTR_ENTITY_ID
Expand All @@ -30,7 +30,7 @@ async def test_unload_entry(hass: HomeAssistant, mock_account: MagicMock) -> Non

vacuum = hass.states.get(VACUUM_ENTITY_ID)
assert vacuum
assert vacuum.state == STATE_DOCKED
assert vacuum.state == VacuumEntityState.DOCKED

await hass.services.async_call(
VACUUM_DOMAIN,
Expand Down
2 changes: 1 addition & 1 deletion tests/components/litterrobot/test_vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def test_vacuum_with_error(
({"displayCode": "DC_CAT_DETECT"}, VacuumEntityState.DOCKED),
({"isDFIFull": True}, VacuumEntityState.ERROR),
(
{"robotCycleState": "CYCLE_VacuumEntityState.CAT_DETECT"},
{"robotCycleState": "CYCLE_STATE_CAT_DETECT"},
VacuumEntityState.PAUSED,
),
],
Expand Down

0 comments on commit 179c0c0

Please sign in to comment.