From cb16a34401934946fbe91d29d672d406421b67a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cerm=C3=A1k?= Date: Mon, 24 Mar 2025 15:09:01 +0100 Subject: [PATCH] Remove WipeDevice method from OS Agent DBus mock (#5744) WipeDevice method was dropped from OS Agent code in [1]. Remove it from the mock class to sync with the current API. There is no usage of WipeDevice in the Supervisor codebase, only ScheduleWipeDevice is called. [1] https://github.com/home-assistant/os-agent/pull/225 --- tests/dbus_service_mocks/agent_system.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/dbus_service_mocks/agent_system.py b/tests/dbus_service_mocks/agent_system.py index 7929642de..0ed149cf5 100644 --- a/tests/dbus_service_mocks/agent_system.py +++ b/tests/dbus_service_mocks/agent_system.py @@ -28,8 +28,3 @@ class System(DBusServiceMock): if isinstance(self.response_schedule_wipe_device, DBusError): raise self.response_schedule_wipe_device # pylint: disable=raising-bad-type return self.response_schedule_wipe_device - - @dbus_method() - def WipeDevice(self) -> "b": - """Wipe device.""" - return True