mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
19 lines
430 B
Python
19 lines
430 B
Python
"""This helper module tracks commonly used types in the esphome python codebase."""
|
|
|
|
from typing import Union
|
|
|
|
from esphome.core import ID, EsphomeCore, Lambda
|
|
|
|
ConfigFragmentType = Union[
|
|
str,
|
|
int,
|
|
float,
|
|
None,
|
|
dict[Union[str, int], "ConfigFragmentType"],
|
|
list["ConfigFragmentType"],
|
|
ID,
|
|
Lambda,
|
|
]
|
|
ConfigType = dict[str, ConfigFragmentType]
|
|
CoreType = EsphomeCore
|
|
ConfigPathType = Union[str, int]
|