1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add set_wait_time command support to Litter-Robot (#48300)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Nathan Spencer
2021-04-11 14:35:25 -06:00
committed by GitHub
parent 30618aae94
commit eb2949a20f
19 changed files with 487 additions and 250 deletions

View File

@@ -3,7 +3,7 @@ from datetime import timedelta
import pytest
from homeassistant.components.litterrobot.hub import REFRESH_WAIT_TIME
from homeassistant.components.litterrobot.entity import REFRESH_WAIT_TIME_SECONDS
from homeassistant.components.switch import (
DOMAIN as PLATFORM_DOMAIN,
SERVICE_TURN_OFF,
@@ -56,6 +56,6 @@ async def test_on_off_commands(hass, mock_account, entity_id, robot_command):
blocking=True,
)
future = utcnow() + timedelta(seconds=REFRESH_WAIT_TIME)
future = utcnow() + timedelta(seconds=REFRESH_WAIT_TIME_SECONDS)
async_fire_time_changed(hass, future)
assert getattr(mock_account.robots[0], robot_command).call_count == count