Refactor litterrobot to use SensorEntityDescription (#71224)
This commit is contained in:
parent
3332c853c4
commit
ae89a1243a
3 changed files with 84 additions and 67 deletions
|
@ -67,6 +67,12 @@ def mock_account_with_sleeping_robot() -> MagicMock:
|
|||
return create_mock_account({"sleepModeActive": "102:00:00"})
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_account_with_sleep_disabled_robot() -> MagicMock:
|
||||
"""Mock a Litter-Robot account with a robot that has sleep mode disabled."""
|
||||
return create_mock_account({"sleepModeActive": "0"})
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_account_with_robot_not_recently_seen() -> MagicMock:
|
||||
"""Mock a Litter-Robot account with a sleeping robot."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue