1
0
mirror of https://github.com/home-assistant/core.git synced 2026-02-23 11:26:46 +00:00
Files
core/tests/components/overkiz/__init__.py
2024-03-08 20:38:34 +01:00

17 lines
388 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_tahoma_switch.json",
) -> Setup:
"""Return setup from fixture."""
setup_json = load_json_object_fixture(fixture)
setup = Setup(**humps.decamelize(setup_json))
return setup