mirror of
https://github.com/esphome/esphome.git
synced 2025-02-13 16:38:18 +00:00
add target platform
This commit is contained in:
parent
9db5872dd4
commit
e7c7516c53
@ -15,15 +15,6 @@ PLATFORM_LIBRETINY_OLDSTYLE = "libretiny"
|
|||||||
PLATFORM_RP2040 = "rp2040"
|
PLATFORM_RP2040 = "rp2040"
|
||||||
PLATFORM_RTL87XX = "rtl87xx"
|
PLATFORM_RTL87XX = "rtl87xx"
|
||||||
|
|
||||||
TARGET_PLATFORMS = [
|
|
||||||
PLATFORM_BK72XX,
|
|
||||||
PLATFORM_ESP32,
|
|
||||||
PLATFORM_ESP8266,
|
|
||||||
PLATFORM_HOST,
|
|
||||||
PLATFORM_LIBRETINY_OLDSTYLE,
|
|
||||||
PLATFORM_RP2040,
|
|
||||||
PLATFORM_RTL87XX,
|
|
||||||
]
|
|
||||||
|
|
||||||
SOURCE_FILE_EXTENSIONS = {".cpp", ".hpp", ".h", ".c", ".tcc", ".ino"}
|
SOURCE_FILE_EXTENSIONS = {".cpp", ".hpp", ".h", ".c", ".tcc", ".ino"}
|
||||||
HEADER_FILE_EXTENSIONS = {".h", ".hpp", ".tcc"}
|
HEADER_FILE_EXTENSIONS = {".h", ".hpp", ".tcc"}
|
||||||
|
@ -52,6 +52,10 @@ class ComponentManifest:
|
|||||||
def is_platform_component(self) -> bool:
|
def is_platform_component(self) -> bool:
|
||||||
return getattr(self.module, "IS_PLATFORM_COMPONENT", False)
|
return getattr(self.module, "IS_PLATFORM_COMPONENT", False)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_target_platform(self) -> bool:
|
||||||
|
return getattr(self.module, "IS_TARGET_PLATFORM", False)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def config_schema(self) -> Optional[Any]:
|
def config_schema(self) -> Optional[Any]:
|
||||||
return getattr(self.module, "CONFIG_SCHEMA", None)
|
return getattr(self.module, "CONFIG_SCHEMA", None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user