mirror of
https://github.com/home-assistant/core.git
synced 2025-11-06 09:29:27 +00:00
Refactor litterrobot to use SensorEntityDescription (#71224)
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user