1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Use signals to recognize new disks immediately (#5023)

* Use signals to recognize new disks immediately

* Add test for disabled data disk issue

* Add mock of UDisks2 base service to test

* Apply suggestions from code review

* Shutdown manager first to avoid potential race conditions

* Update tests/dbus_service_mocks/udisks2.py

Co-authored-by: Jan Čermák <sairon@users.noreply.github.com>

---------

Co-authored-by: Stefan Agner <stefan@agner.ch>
Co-authored-by: Jan Čermák <sairon@users.noreply.github.com>
This commit is contained in:
Mike Degatano
2024-04-22 10:35:03 -04:00
committed by GitHub
parent f18213361a
commit 8d18d2d9c6
10 changed files with 373 additions and 16 deletions

View File

@@ -229,6 +229,7 @@ async def fixture_udisks2_services(
],
"udisks2_loop": None,
"udisks2_manager": None,
"udisks2": None,
"udisks2_partition_table": [
"/org/freedesktop/UDisks2/block_devices/mmcblk1",
"/org/freedesktop/UDisks2/block_devices/sda",