1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00
Files
core/tests/components/labs/__init__.py
2025-11-25 13:52:02 +01:00

19 lines
507 B
Python

"""Tests for the Home Assistant Labs integration."""
from typing import Any
from pytest_unordered import unordered
def assert_stored_labs_data(
hass_storage: dict[str, Any],
expected_data: list[dict[str, str]],
) -> None:
"""Assert that the storage has the expected enabled preview features."""
assert hass_storage["core.labs"] == {
"version": 1,
"minor_version": 1,
"key": "core.labs",
"data": {"preview_feature_status": unordered(expected_data)},
}