Refactor litterrobot to use SensorEntityDescription (#71224)

This commit is contained in:
Nathan Spencer 2022-05-12 12:15:59 -06:00 committed by GitHub
parent 3332c853c4
commit ae89a1243a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 84 additions and 67 deletions

View file

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