Fix flakey Bluetooth options flow tests (#143215)

This commit is contained in:
J. Nick Koston 2025-04-18 10:08:17 -10:00 committed by GitHub
parent d3b335f53f
commit 59588f960d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,8 +23,7 @@ from . import (
@pytest.fixture(name="disable_bluez_manager_socket", autouse=True, scope="package")
def disable_bluez_manager_socket():
"""Mock the bluez manager socket."""
with patch.object(bleak_manager, "get_global_bluez_manager_with_timeout"):
yield
bleak_manager.get_global_bluez_manager_with_timeout._has_dbus_socket = False
@pytest.fixture(name="disable_dbus_socket", autouse=True, scope="package")