mirror of https://github.com/esphome/esphome.git
Use Optional
This commit is contained in:
parent
da5a78e9a3
commit
66e1f8dfb1
|
@ -654,7 +654,7 @@ async def process_lambda(
|
|||
parameters: list[tuple[SafeExpType, str]],
|
||||
capture: str = "=",
|
||||
return_type: SafeExpType = None,
|
||||
) -> LambdaExpression | None:
|
||||
) -> Optional[LambdaExpression]:
|
||||
"""Process the given lambda value into a LambdaExpression.
|
||||
|
||||
This is a coroutine because lambdas can depend on other IDs,
|
||||
|
|
Loading…
Reference in New Issue