diff --git a/homeassistant/loader.py b/homeassistant/loader.py index 7a15410f96a..0f69f4600b2 100644 --- a/homeassistant/loader.py +++ b/homeassistant/loader.py @@ -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.""" diff --git a/script/hassfest/manifest.py b/script/hassfest/manifest.py index e6bd6551786..5ce9a1f75d5 100644 --- a/script/hassfest/manifest.py +++ b/script/hassfest/manifest.py @@ -29,6 +29,8 @@ MANIFEST_SCHEMA = vol.Schema( vol.Required("dependencies"): [str], vol.Optional("after_dependencies"): [str], vol.Required("codeowners"): [str], + vol.Optional("logo"): vol.Url(), # pylint: disable=no-value-for-parameter + vol.Optional("icon"): vol.Url(), # pylint: disable=no-value-for-parameter } )