hass-core/tests/components/hko/conftest.py
MisterCommand 0d7627da22
Add Hong Kong Observatory integration (#98703)
* Add Hong Kong Observatory integration

* Move coordinator to a separate file

* Map icons to conditions

* Fix code for review

* Skip name

* Add typings to data_coordinator

* Some small fixes

* Rename coordinator.py
2024-01-05 14:52:46 +01:00

17 lines
426 B
Python

"""Configure py.test."""
import json
from unittest.mock import patch
import pytest
from tests.common import load_fixture
@pytest.fixture(name="hko_config_flow_connect", autouse=True)
def hko_config_flow_connect():
"""Mock valid config flow setup."""
with patch(
"homeassistant.components.hko.config_flow.HKO.weather",
return_value=json.loads(load_fixture("hko/rhrread.json")),
):
yield