Improve type hints in template (#87172)
parent
9327947332
commit
98198d3c1f
|
@ -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 = []
|
||||
|
||||
|
|
|
@ -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 = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue