diff --git a/homeassistant/components/ecovacs/manifest.json b/homeassistant/components/ecovacs/manifest.json index de4181b21b6..66dd07cf431 100644 --- a/homeassistant/components/ecovacs/manifest.json +++ b/homeassistant/components/ecovacs/manifest.json @@ -6,5 +6,5 @@ "documentation": "https://www.home-assistant.io/integrations/ecovacs", "iot_class": "cloud_push", "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"] } diff --git a/requirements_all.txt b/requirements_all.txt index d60aeb4892e..3dc5a43e9ba 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -703,7 +703,7 @@ debugpy==1.8.1 # decora==0.6 # homeassistant.components.ecovacs -deebot-client==7.2.0 +deebot-client==7.3.0 # homeassistant.components.ihc # homeassistant.components.namecheapdns diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 7321bb6429b..7d313056e6a 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -581,7 +581,7 @@ dbus-fast==2.21.3 debugpy==1.8.1 # homeassistant.components.ecovacs -deebot-client==7.2.0 +deebot-client==7.3.0 # homeassistant.components.ihc # homeassistant.components.namecheapdns diff --git a/tests/components/ecovacs/conftest.py b/tests/components/ecovacs/conftest.py index d4333f65dc4..f227b6092fd 100644 --- a/tests/components/ecovacs/conftest.py +++ b/tests/components/ecovacs/conftest.py @@ -1,10 +1,11 @@ """Common fixtures for the Ecovacs tests.""" -from collections.abc import Generator +from collections.abc import AsyncGenerator, Generator from typing import Any from unittest.mock import AsyncMock, Mock, patch from deebot_client import const +from deebot_client.command import DeviceCommandResult from deebot_client.device import Device from deebot_client.exceptions import ApiError from deebot_client.models import Credentials @@ -98,7 +99,7 @@ def mock_authenticator_authenticate(mock_authenticator: Mock) -> AsyncMock: @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.""" with ( patch( @@ -117,10 +118,12 @@ def mock_mqtt_client(mock_authenticator: Mock) -> Mock: @pytest.fixture -def mock_device_execute() -> AsyncMock: +def mock_device_execute() -> Generator[AsyncMock, None, None]: """Mock the device execute function.""" with patch.object( - Device, "_execute_command", return_value=True + Device, + "_execute_command", + return_value=DeviceCommandResult(device_reached=True), ) as mock_device_execute: yield mock_device_execute @@ -139,7 +142,7 @@ async def init_integration( mock_mqtt_client: Mock, mock_device_execute: AsyncMock, platforms: Platform | list[Platform], -) -> MockConfigEntry: +) -> AsyncGenerator[MockConfigEntry, None]: """Set up the Ecovacs integration for testing.""" if not isinstance(platforms, list): platforms = [platforms]