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

image: allow the image to by auto-loaded by animation (#5139)

This commit is contained in:
Kamil Trzciński
2023-12-20 11:33:05 +01:00
committed by GitHub
parent 16798bbfb4
commit d582cfa30a
6 changed files with 39 additions and 8 deletions

View File

@@ -57,6 +57,10 @@ class ComponentManifest:
def multi_conf(self) -> bool:
return getattr(self.module, "MULTI_CONF", False)
@property
def multi_conf_no_default(self) -> bool:
return getattr(self.module, "MULTI_CONF_NO_DEFAULT", False)
@property
def to_code(self) -> Optional[Callable[[Any], None]]:
return getattr(self.module, "to_code", None)