Improve type hints in template tests (#123915)

pull/122822/head^2
epenet 2024-08-14 14:58:16 +02:00 committed by GitHub
parent 324b6529e8
commit 67f761c0e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,7 @@
"""The tests for the Template light platform."""
from typing import Any
import pytest
from homeassistant.components import light
@ -152,7 +154,9 @@ OPTIMISTIC_RGBWW_COLOR_LIGHT_CONFIG = {
}
async def async_setup_light(hass, count, light_config):
async def async_setup_light(
hass: HomeAssistant, count: int, light_config: dict[str, Any]
) -> None:
"""Do setup of light integration."""
config = {"light": {"platform": "template", "lights": light_config}}
@ -169,7 +173,9 @@ async def async_setup_light(hass, count, light_config):
@pytest.fixture
async def setup_light(hass, count, light_config):
async def setup_light(
hass: HomeAssistant, count: int, light_config: dict[str, Any]
) -> None:
"""Do setup of light integration."""
await async_setup_light(hass, count, light_config)