Complete some incomplete type hints in helpers (#25953)
This commit is contained in:
parent
3525728abc
commit
aa508b5106
7 changed files with 28 additions and 22 deletions
|
@ -18,12 +18,13 @@ from homeassistant.exceptions import (
|
|||
from homeassistant.helpers import template, typing
|
||||
from homeassistant.loader import async_get_integration, bind_hass
|
||||
from homeassistant.util.yaml import load_yaml
|
||||
from homeassistant.util.yaml.loader import JSON_TYPE
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.util.async_ import run_coroutine_threadsafe
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
|
||||
|
||||
# mypy: allow-incomplete-defs, allow-untyped-defs, no-check-untyped-defs
|
||||
# mypy: allow-untyped-defs, no-check-untyped-defs
|
||||
|
||||
CONF_SERVICE = "service"
|
||||
CONF_SERVICE_TEMPLATE = "service_template"
|
||||
|
@ -161,7 +162,7 @@ async def async_extract_entity_ids(hass, service_call, expand_group=True):
|
|||
return extracted
|
||||
|
||||
|
||||
async def _load_services_file(hass: HomeAssistantType, domain: str):
|
||||
async def _load_services_file(hass: HomeAssistantType, domain: str) -> JSON_TYPE:
|
||||
"""Load services file for an integration."""
|
||||
integration = await async_get_integration(hass, domain)
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue