Add missing hass type in tests/*.py (#124048)
This commit is contained in:
parent
69843e9ac4
commit
ba3872ff87
6 changed files with 74 additions and 50 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue