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
This commit is contained in:
Jan Čermák 2025-03-24 15:09:01 +01:00 committed by GitHub
parent d756fd7e14
commit cb16a34401
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,8 +28,3 @@ class System(DBusServiceMock):
if isinstance(self.response_schedule_wipe_device, DBusError): if isinstance(self.response_schedule_wipe_device, DBusError):
raise self.response_schedule_wipe_device # pylint: disable=raising-bad-type raise self.response_schedule_wipe_device # pylint: disable=raising-bad-type
return self.response_schedule_wipe_device return self.response_schedule_wipe_device
@dbus_method()
def WipeDevice(self) -> "b":
"""Wipe device."""
return True