mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Improve type hints in knx tests (#123787)
This commit is contained in:
parent
b3d1d79a49
commit
2c4b7c2577
@ -1,5 +1,7 @@
|
|||||||
"""Test KNX selectors."""
|
"""Test KNX selectors."""
|
||||||
|
|
||||||
|
from typing import Any
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
@ -111,7 +113,11 @@ INVALID = "invalid"
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_ga_selector(selector_config, data, expected):
|
def test_ga_selector(
|
||||||
|
selector_config: dict[str, Any],
|
||||||
|
data: dict[str, Any],
|
||||||
|
expected: str | dict[str, Any],
|
||||||
|
) -> None:
|
||||||
"""Test GASelector."""
|
"""Test GASelector."""
|
||||||
selector = GASelector(**selector_config)
|
selector = GASelector(**selector_config)
|
||||||
if expected == INVALID:
|
if expected == INVALID:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user