mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-26 22:08:43 +01:00
* Clean up leftover config schema option * Allow import groups via new config yaml setup * Fix and add test * Add a test without groups for legacy import * Change default import groups to False * Fix I/O in test
13 lines
301 B
Python
13 lines
301 B
Python
"""Common tradfri test fixtures."""
|
|
from unittest.mock import patch
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture
|
|
def mock_gateway_info():
|
|
"""Mock get_gateway_info."""
|
|
with patch('homeassistant.components.tradfri.config_flow.'
|
|
'get_gateway_info') as mock_gateway:
|
|
yield mock_gateway
|