mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Bump pylitterbot to 2022.9.1 (#78071)
This commit is contained in:
parent
01189b023c
commit
03e6bd0811
@ -3,7 +3,7 @@
|
|||||||
"name": "Litter-Robot",
|
"name": "Litter-Robot",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/litterrobot",
|
"documentation": "https://www.home-assistant.io/integrations/litterrobot",
|
||||||
"requirements": ["pylitterbot==2022.8.2"],
|
"requirements": ["pylitterbot==2022.9.1"],
|
||||||
"codeowners": ["@natekspencer", "@tkdrob"],
|
"codeowners": ["@natekspencer", "@tkdrob"],
|
||||||
"dhcp": [{ "hostname": "litter-robot4" }],
|
"dhcp": [{ "hostname": "litter-robot4" }],
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
|
@ -1668,7 +1668,7 @@ pylibrespot-java==0.1.0
|
|||||||
pylitejet==0.3.0
|
pylitejet==0.3.0
|
||||||
|
|
||||||
# homeassistant.components.litterrobot
|
# homeassistant.components.litterrobot
|
||||||
pylitterbot==2022.8.2
|
pylitterbot==2022.9.1
|
||||||
|
|
||||||
# homeassistant.components.lutron_caseta
|
# homeassistant.components.lutron_caseta
|
||||||
pylutron-caseta==0.13.1
|
pylutron-caseta==0.13.1
|
||||||
|
@ -1166,7 +1166,7 @@ pylibrespot-java==0.1.0
|
|||||||
pylitejet==0.3.0
|
pylitejet==0.3.0
|
||||||
|
|
||||||
# homeassistant.components.litterrobot
|
# homeassistant.components.litterrobot
|
||||||
pylitterbot==2022.8.2
|
pylitterbot==2022.9.1
|
||||||
|
|
||||||
# homeassistant.components.lutron_caseta
|
# homeassistant.components.lutron_caseta
|
||||||
pylutron-caseta==0.13.1
|
pylutron-caseta==0.13.1
|
||||||
|
@ -17,13 +17,13 @@ from tests.common import MockConfigEntry
|
|||||||
|
|
||||||
|
|
||||||
def create_mock_robot(
|
def create_mock_robot(
|
||||||
robot_data: dict | None = None, side_effect: Any | None = None
|
robot_data: dict | None, account: Account, side_effect: Any | None = None
|
||||||
) -> Robot:
|
) -> Robot:
|
||||||
"""Create a mock Litter-Robot device."""
|
"""Create a mock Litter-Robot device."""
|
||||||
if not robot_data:
|
if not robot_data:
|
||||||
robot_data = {}
|
robot_data = {}
|
||||||
|
|
||||||
robot = LitterRobot3(data={**ROBOT_DATA, **robot_data})
|
robot = LitterRobot3(data={**ROBOT_DATA, **robot_data}, account=account)
|
||||||
robot.start_cleaning = AsyncMock(side_effect=side_effect)
|
robot.start_cleaning = AsyncMock(side_effect=side_effect)
|
||||||
robot.set_power_status = AsyncMock(side_effect=side_effect)
|
robot.set_power_status = AsyncMock(side_effect=side_effect)
|
||||||
robot.reset_waste_drawer = AsyncMock(side_effect=side_effect)
|
robot.reset_waste_drawer = AsyncMock(side_effect=side_effect)
|
||||||
@ -44,7 +44,9 @@ def create_mock_account(
|
|||||||
account = MagicMock(spec=Account)
|
account = MagicMock(spec=Account)
|
||||||
account.connect = AsyncMock()
|
account.connect = AsyncMock()
|
||||||
account.refresh_robots = AsyncMock()
|
account.refresh_robots = AsyncMock()
|
||||||
account.robots = [] if skip_robots else [create_mock_robot(robot_data, side_effect)]
|
account.robots = (
|
||||||
|
[] if skip_robots else [create_mock_robot(robot_data, account, side_effect)]
|
||||||
|
)
|
||||||
return account
|
return account
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user