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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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()