Add support for Litter-Robot 4 (#75790)

This commit is contained in:
Nathan Spencer 2022-08-25 10:32:27 -06:00 committed by GitHub
parent 462ec4ced3
commit b563bd0ae5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 63 additions and 53 deletions

View file

@ -1,7 +1,7 @@
"""Test the Litter-Robot select entity."""
from datetime import timedelta
from pylitterbot.robot import VALID_WAIT_TIMES
from pylitterbot import LitterRobot3
import pytest
from homeassistant.components.litterrobot.entity import REFRESH_WAIT_TIME_SECONDS
@ -38,7 +38,7 @@ async def test_wait_time_select(hass: HomeAssistant, mock_account):
data = {ATTR_ENTITY_ID: SELECT_ENTITY_ID}
count = 0
for wait_time in VALID_WAIT_TIMES:
for wait_time in LitterRobot3.VALID_WAIT_TIMES:
count += 1
data[ATTR_OPTION] = wait_time