Add setup type hints to all demo platforms (#63294)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
1c30992b0e
commit
9b5939a7a5
11 changed files with 171 additions and 22 deletions
|
@ -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(
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue