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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user