Add logo & icon support to Manifest (#31131)

* Add logo & icon support to Manifest

* Add URL validation
This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2020-01-24 14:36:22 -08:00
1 parent 9795449d22
commit c0bc4bb550
2 files changed
+12

No files matched your search

+10
View File
@@ -244,6 +244,16 @@ class Integration:
"""Return Integration Quality Scale."""
return cast(str, self.manifest.get("quality_scale"))
@property
def logo(self) -> Optional[str]:
"""Return Integration Logo."""
return cast(str, self.manifest.get("logo"))
@property
def icon(self) -> Optional[str]:
"""Return Integration Icon."""
return cast(str, self.manifest.get("icon"))
@property
def is_built_in(self) -> bool:
"""Test if package is a built-in integration."""