1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2026-05-08 17:08:36 +01:00

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
-5
View File
@@ -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