From 5825cd7868abbbfa00c57f6e2398ee2204acd16b Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Wed, 29 Apr 2020 01:49:43 +0200 Subject: [PATCH] Fix async_setup type in components/homeassistant module (#34816) --- homeassistant/components/homeassistant/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/homeassistant/__init__.py b/homeassistant/components/homeassistant/__init__.py index 7a0ae33345a..e0a4d88ec6a 100644 --- a/homeassistant/components/homeassistant/__init__.py +++ b/homeassistant/components/homeassistant/__init__.py @@ -2,7 +2,6 @@ import asyncio import itertools as it import logging -from typing import Awaitable import voluptuous as vol @@ -33,7 +32,7 @@ SERVICE_SET_LOCATION = "set_location" 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.""" async def async_handle_turn_service(service):