1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-19 00:10:21 +01:00
Files
core/tests/components/overkiz/__init__.py

15 lines
375 B
Python

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