mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 13:30:43 +00:00
Complete some incomplete type hints in helpers (#25953)
This commit is contained in:
committed by
Paulus Schoutsen
parent
3525728abc
commit
aa508b5106
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user