Fix hassfest service icons check for custom integrations (#114389)

This commit is contained in:
Franck Nijhof
2024-03-28 20:42:58 +01:00
parent aa30194249
commit 8cd8718855
+2 -1
View File
@@ -168,7 +168,8 @@ def validate_services(config: Config, integration: Integration) -> None:
# 2. Check if the service has an icon set in icons.json.
# raise an error if not.,
for service_name, service_schema in services.items():
if service_name not in service_icons:
if integration.core and service_name not in service_icons:
# This is enforced for Core integrations only
integration.add_error(
"services",
f"Service {service_name} has no icon in icons.json.",