1
0
mirror of https://github.com/home-assistant/core.git synced 2026-06-01 21:24:17 +01:00
Files
core/tests/components/overkiz/__init__.py
T
2026-04-20 18:30:26 +01:00

17 lines
487 B
Python

"""Tests for the Overkiz component."""
import humps
from pyoverkiz.models import Setup
from homeassistant.components.overkiz.const import DOMAIN
from tests.common import load_json_object_fixture
DEFAULT_SETUP_FIXTURE = "setup/cloud_somfy_tahoma_switch_europe.json"
def load_setup_fixture(fixture: str = DEFAULT_SETUP_FIXTURE) -> Setup:
"""Return setup from fixture."""
setup_json = load_json_object_fixture(fixture, DOMAIN)
return Setup(**humps.decamelize(setup_json))