Improve type hints in template (#87172)

pull/86056/head^2
epenet 2023-02-02 22:26:03 +01:00 committed by GitHub
parent 9327947332
commit 98198d3c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -138,8 +138,11 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
@callback
def _async_create_template_tracking_entities(
async_add_entities, hass, definitions: list[dict], unique_id_prefix: str | None
):
async_add_entities: AddEntitiesCallback,
hass: HomeAssistant,
definitions: list[dict],
unique_id_prefix: str | None,
) -> None:
"""Create the template binary sensors."""
sensors = []

View File

@ -140,8 +140,11 @@ PLATFORM_SCHEMA = vol.All(
@callback
def _async_create_template_tracking_entities(
async_add_entities, hass, definitions: list[dict], unique_id_prefix: str | None
):
async_add_entities: AddEntitiesCallback,
hass: HomeAssistant,
definitions: list[dict],
unique_id_prefix: str | None,
) -> None:
"""Create the template sensors."""
sensors = []