"""Test configuration and fixtures.""" import pytest @pytest.fixture(autouse=True) def auto_enable_custom_integrations(enable_custom_integrations): """Enable custom integrations for all tests.""" yield @pytest.fixture(autouse=True) def mock_platform_setup(): """Mock platform setup to avoid actual platform loading.""" from unittest.mock import patch with patch("homeassistant.config_entries.ConfigEntry.async_forward_entry_setups"): yield