Bump deebot-client to 7.3.0 (#118462)

pull/118845/head
Robert Resch 2024-05-30 11:40:05 +02:00 committed by Franck Nijhof
parent 48342837c0
commit 98d905562e
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
4 changed files with 11 additions and 8 deletions

View File

@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/ecovacs", "documentation": "https://www.home-assistant.io/integrations/ecovacs",
"iot_class": "cloud_push", "iot_class": "cloud_push",
"loggers": ["sleekxmppfs", "sucks", "deebot_client"], "loggers": ["sleekxmppfs", "sucks", "deebot_client"],
"requirements": ["py-sucks==0.9.10", "deebot-client==7.2.0"] "requirements": ["py-sucks==0.9.10", "deebot-client==7.3.0"]
} }

View File

@ -703,7 +703,7 @@ debugpy==1.8.1
# decora==0.6 # decora==0.6
# homeassistant.components.ecovacs # homeassistant.components.ecovacs
deebot-client==7.2.0 deebot-client==7.3.0
# homeassistant.components.ihc # homeassistant.components.ihc
# homeassistant.components.namecheapdns # homeassistant.components.namecheapdns

View File

@ -581,7 +581,7 @@ dbus-fast==2.21.3
debugpy==1.8.1 debugpy==1.8.1
# homeassistant.components.ecovacs # homeassistant.components.ecovacs
deebot-client==7.2.0 deebot-client==7.3.0
# homeassistant.components.ihc # homeassistant.components.ihc
# homeassistant.components.namecheapdns # homeassistant.components.namecheapdns

View File

@ -1,10 +1,11 @@
"""Common fixtures for the Ecovacs tests.""" """Common fixtures for the Ecovacs tests."""
from collections.abc import Generator from collections.abc import AsyncGenerator, Generator
from typing import Any from typing import Any
from unittest.mock import AsyncMock, Mock, patch from unittest.mock import AsyncMock, Mock, patch
from deebot_client import const from deebot_client import const
from deebot_client.command import DeviceCommandResult
from deebot_client.device import Device from deebot_client.device import Device
from deebot_client.exceptions import ApiError from deebot_client.exceptions import ApiError
from deebot_client.models import Credentials from deebot_client.models import Credentials
@ -98,7 +99,7 @@ def mock_authenticator_authenticate(mock_authenticator: Mock) -> AsyncMock:
@pytest.fixture @pytest.fixture
def mock_mqtt_client(mock_authenticator: Mock) -> Mock: def mock_mqtt_client(mock_authenticator: Mock) -> Generator[Mock, None, None]:
"""Mock the MQTT client.""" """Mock the MQTT client."""
with ( with (
patch( patch(
@ -117,10 +118,12 @@ def mock_mqtt_client(mock_authenticator: Mock) -> Mock:
@pytest.fixture @pytest.fixture
def mock_device_execute() -> AsyncMock: def mock_device_execute() -> Generator[AsyncMock, None, None]:
"""Mock the device execute function.""" """Mock the device execute function."""
with patch.object( with patch.object(
Device, "_execute_command", return_value=True Device,
"_execute_command",
return_value=DeviceCommandResult(device_reached=True),
) as mock_device_execute: ) as mock_device_execute:
yield mock_device_execute yield mock_device_execute
@ -139,7 +142,7 @@ async def init_integration(
mock_mqtt_client: Mock, mock_mqtt_client: Mock,
mock_device_execute: AsyncMock, mock_device_execute: AsyncMock,
platforms: Platform | list[Platform], platforms: Platform | list[Platform],
) -> MockConfigEntry: ) -> AsyncGenerator[MockConfigEntry, None]:
"""Set up the Ecovacs integration for testing.""" """Set up the Ecovacs integration for testing."""
if not isinstance(platforms, list): if not isinstance(platforms, list):
platforms = [platforms] platforms = [platforms]