1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 11:22:24 +01:00
Files
esphome/esphome/types.py
2025-05-22 13:21:43 +12:00

19 lines
394 B
Python

"""This helper module tracks commonly used types in the esphome python codebase."""
from esphome.core import ID, EsphomeCore, Lambda
ConfigFragmentType = (
str
| int
| float
| None
| dict[str | int, "ConfigFragmentType"]
| list["ConfigFragmentType"]
| ID
| Lambda
)
ConfigType = dict[str, ConfigFragmentType]
CoreType = EsphomeCore
ConfigPathType = str | int