Add litterrobot integration (#45886)

This commit is contained in:
Nathan Spencer 2021-02-22 11:53:57 -07:00 committed by GitHub
parent 668574c48f
commit e70d896e1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 676 additions and 0 deletions

View file

@ -0,0 +1,24 @@
"""Common utils for Litter-Robot tests."""
from homeassistant.components.litterrobot import DOMAIN
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
BASE_PATH = "homeassistant.components.litterrobot"
CONFIG = {DOMAIN: {CONF_USERNAME: "user@example.com", CONF_PASSWORD: "password"}}
ROBOT_NAME = "Test"
ROBOT_SERIAL = "LR3C012345"
ROBOT_DATA = {
"powerStatus": "AC",
"lastSeen": "2021-02-01T15:30:00.000000",
"cleanCycleWaitTimeMinutes": "7",
"unitStatus": "RDY",
"litterRobotNickname": ROBOT_NAME,
"cycleCount": "15",
"panelLockActive": "0",
"cyclesAfterDrawerFull": "0",
"litterRobotSerial": ROBOT_SERIAL,
"cycleCapacity": "30",
"litterRobotId": "a0123b4567cd8e",
"nightLightActive": "1",
"sleepModeActive": "112:50:19",
}