1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add missing hass type in tests/*.py (#124048)

This commit is contained in:
epenet
2024-08-18 15:42:41 +02:00
committed by GitHub
parent 69843e9ac4
commit ba3872ff87
6 changed files with 74 additions and 50 deletions

View File

@@ -36,6 +36,7 @@ from homeassistant.core import (
DOMAIN as HOMEASSISTANT_DOMAIN,
ConfigSource,
HomeAssistant,
State,
)
from homeassistant.exceptions import ConfigValidationError, HomeAssistantError
from homeassistant.helpers import (
@@ -579,7 +580,7 @@ def test_customize_glob_is_ordered() -> None:
assert isinstance(conf["customize_glob"], OrderedDict)
async def _compute_state(hass, config):
async def _compute_state(hass: HomeAssistant, config: dict[str, Any]) -> State | None:
await config_util.async_process_ha_core_config(hass, config)
entity = Entity()