1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-17 23:53:49 +01:00

Mock PyMochad controller in mochad tests (#164394)

This commit is contained in:
Franck Nijhof
2026-02-27 20:43:08 +01:00
committed by GitHub
parent 350f462bdf
commit 3f0d1bc071

View File

@@ -1,3 +1,14 @@
"""mochad conftest."""
from unittest import mock
import pytest
from tests.components.light.conftest import mock_light_profiles # noqa: F401
@pytest.fixture(autouse=True)
def mock_pymochad_controller():
"""Mock pymochad controller to prevent real socket connections."""
with mock.patch("homeassistant.components.mochad.controller.PyMochad"):
yield