mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +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."""
|
||||
|
||||
from typing import Any
|
||||
|
||||
import pytest
|
||||
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."""
|
||||
selector = GASelector(**selector_config)
|
||||
if expected == INVALID:
|
||||
|
Loading…
x
Reference in New Issue
Block a user