mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-09 02:49:43 +00:00
Bump pre-commit ruff to 0.5.7 and reformat (#5242)
It seems that the codebase is not formatted with the latest ruff version. This PR reformats the codebase with ruff 0.5.7.
This commit is contained in:
@@ -312,8 +312,9 @@ async def test_datadisk_wipe_errors(
|
||||
system_service.ScheduleWipeDevice.calls.clear()
|
||||
system_service.response_schedule_wipe_device = True
|
||||
logind_service.side_effect_reboot = DBusError(ErrorType.FAILED, "fail")
|
||||
with patch.object(Core, "shutdown"), pytest.raises(
|
||||
HassOSError, match="Can't restart device"
|
||||
with (
|
||||
patch.object(Core, "shutdown"),
|
||||
pytest.raises(HassOSError, match="Can't restart device"),
|
||||
):
|
||||
await coresys.os.datadisk.wipe_disk()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user