1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-07 05:42:20 +01:00

[mapping] Implement yaml-configured maps (#8333)

This commit is contained in:
Clyde Stubbs
2025-04-17 11:18:48 +10:00
committed by GitHub
parent 55e099450c
commit f10bc73d31
15 changed files with 336 additions and 2 deletions

View File

@@ -91,6 +91,10 @@ class ComponentManifest:
def codeowners(self) -> list[str]:
return getattr(self.module, "CODEOWNERS", [])
@property
def instance_type(self) -> list[str]:
return getattr(self.module, "INSTANCE_TYPE", None)
@property
def final_validate_schema(self) -> Optional[Callable[[ConfigType], None]]:
"""Components can declare a `FINAL_VALIDATE_SCHEMA` cv.Schema that gets called