mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix async_setup type in components/homeassistant module (#34816)
This commit is contained in:
parent
e46f1b69ba
commit
5825cd7868
@ -2,7 +2,6 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import itertools as it
|
import itertools as it
|
||||||
import logging
|
import logging
|
||||||
from typing import Awaitable
|
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
@ -33,7 +32,7 @@ SERVICE_SET_LOCATION = "set_location"
|
|||||||
SCHEMA_UPDATE_ENTITY = vol.Schema({ATTR_ENTITY_ID: cv.entity_ids})
|
SCHEMA_UPDATE_ENTITY = vol.Schema({ATTR_ENTITY_ID: cv.entity_ids})
|
||||||
|
|
||||||
|
|
||||||
async def async_setup(hass: ha.HomeAssistant, config: dict) -> Awaitable[bool]:
|
async def async_setup(hass: ha.HomeAssistant, config: dict) -> bool:
|
||||||
"""Set up general services related to Home Assistant."""
|
"""Set up general services related to Home Assistant."""
|
||||||
|
|
||||||
async def async_handle_turn_service(service):
|
async def async_handle_turn_service(service):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user