hass-core/tests/components/overkiz/__init__.py
Sid 0d66d298ec
Enable Ruff RET504 (#114528)
* Enable Ruff RET504

* fix test

* Use noqa instead of cast

* fix sonos RET504

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-06 11:07:37 +02:00

14 lines
369 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)
return Setup(**humps.decamelize(setup_json))