mirror of https://github.com/esphome/esphome.git
Use Union
This commit is contained in:
parent
6c50ca76ef
commit
98ca9fb800
|
@ -712,7 +712,7 @@ async def templatable(
|
|||
value: Any,
|
||||
args: list[tuple[SafeExpType, str]],
|
||||
output_type: Optional[SafeExpType],
|
||||
to_exp: Callable | dict = None,
|
||||
to_exp: Union[Callable, dict] = None,
|
||||
):
|
||||
"""Generate code for a templatable config option.
|
||||
|
||||
|
|
Loading…
Reference in New Issue