Add setup type hints to all demo platforms (#63294)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-03 16:24:09 +01:00 committed by GitHub
parent 1c30992b0e
commit 9b5939a7a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 171 additions and 22 deletions

View file

@ -1,4 +1,6 @@
"""Support for the demo image processing."""
from __future__ import annotations
from homeassistant.components.image_processing import (
ATTR_AGE,
ATTR_CONFIDENCE,
@ -9,9 +11,17 @@ from homeassistant.components.image_processing import (
from homeassistant.components.openalpr_local.image_processing import (
ImageProcessingAlprEntity,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
def setup_platform(hass, config, add_entities, discovery_info=None):
def setup_platform(
hass: HomeAssistant,
config: ConfigType,
add_entities: AddEntitiesCallback,
discovery_info: DiscoveryInfoType | None = None,
) -> None:
"""Set up the demo image processing platform."""
add_entities(
[