From dffbdf15f2e9ca7f4bd79db74b265cc758f68e12 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 6 Nov 2025 21:09:20 +0100 Subject: [PATCH] Fix libre_hardware_monitor tests opening sockets (#155897) --- tests/components/libre_hardware_monitor/test_init.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/components/libre_hardware_monitor/test_init.py b/tests/components/libre_hardware_monitor/test_init.py index 8780c49cdc3..67f6e96b74f 100644 --- a/tests/components/libre_hardware_monitor/test_init.py +++ b/tests/components/libre_hardware_monitor/test_init.py @@ -1,6 +1,6 @@ """Tests for the LibreHardwareMonitor init.""" -import logging +import pytest from homeassistant.components.libre_hardware_monitor.const import DOMAIN from homeassistant.core import HomeAssistant @@ -11,9 +11,8 @@ from .conftest import VALID_CONFIG from tests.common import MockConfigEntry -_LOGGER = logging.getLogger(__name__) - +@pytest.mark.usefixtures("mock_lhm_client") async def test_migration_to_unique_ids( hass: HomeAssistant, entity_registry: er.EntityRegistry,