Bump pylitterbot to 2022.9.1 (#78071)
parent
01189b023c
commit
03e6bd0811
|
@ -3,7 +3,7 @@
|
|||
"name": "Litter-Robot",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/litterrobot",
|
||||
"requirements": ["pylitterbot==2022.8.2"],
|
||||
"requirements": ["pylitterbot==2022.9.1"],
|
||||
"codeowners": ["@natekspencer", "@tkdrob"],
|
||||
"dhcp": [{ "hostname": "litter-robot4" }],
|
||||
"iot_class": "cloud_polling",
|
||||
|
|
|
@ -1668,7 +1668,7 @@ pylibrespot-java==0.1.0
|
|||
pylitejet==0.3.0
|
||||
|
||||
# homeassistant.components.litterrobot
|
||||
pylitterbot==2022.8.2
|
||||
pylitterbot==2022.9.1
|
||||
|
||||
# homeassistant.components.lutron_caseta
|
||||
pylutron-caseta==0.13.1
|
||||
|
|
|
@ -1166,7 +1166,7 @@ pylibrespot-java==0.1.0
|
|||
pylitejet==0.3.0
|
||||
|
||||
# homeassistant.components.litterrobot
|
||||
pylitterbot==2022.8.2
|
||||
pylitterbot==2022.9.1
|
||||
|
||||
# homeassistant.components.lutron_caseta
|
||||
pylutron-caseta==0.13.1
|
||||
|
|
|
@ -17,13 +17,13 @@ from tests.common import MockConfigEntry
|
|||
|
||||
|
||||
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:
|
||||
"""Create a mock Litter-Robot device."""
|
||||
if not 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.set_power_status = 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.connect = 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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue