Add setup type hints [s-t] (#63613)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-07 16:29:16 +01:00 committed by GitHub
parent d94f68d697
commit 0700c73bd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 45 additions and 21 deletions

View file

@ -28,6 +28,7 @@ from homeassistant.helpers import device_registry
from homeassistant.helpers.aiohttp_client import async_get_clientsession
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.event import async_track_time_interval
from homeassistant.helpers.restore_state import RestoreEntity
from homeassistant.util import slugify
@ -118,8 +119,8 @@ PLATFORM_SCHEMA = PARENT_PLATFORM_SCHEMA.extend(
async def async_setup_entry(
hass: HomeAssistant, entry: ConfigEntry, async_add_entities
):
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
) -> None:
"""Configure a dispatcher connection based on a config entry."""
@callback