1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-11 12:43:49 +01:00
Files
core/tests/components/mochad/conftest.py
2026-02-27 20:43:08 +01:00

15 lines
369 B
Python

"""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