Skip to content

Commit dffbdf1

Browse files
authored
Fix libre_hardware_monitor tests opening sockets (home-assistant#155897)
1 parent e09c35c commit dffbdf1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/components/libre_hardware_monitor/test_init.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Tests for the LibreHardwareMonitor init."""
22

3-
import logging
3+
import pytest
44

55
from homeassistant.components.libre_hardware_monitor.const import DOMAIN
66
from homeassistant.core import HomeAssistant
@@ -11,9 +11,8 @@
1111

1212
from tests.common import MockConfigEntry
1313

14-
_LOGGER = logging.getLogger(__name__)
15-
1614

15+
@pytest.mark.usefixtures("mock_lhm_client")
1716
async def test_migration_to_unique_ids(
1817
hass: HomeAssistant,
1918
entity_registry: er.EntityRegistry,

0 commit comments

Comments
 (0)