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

pull/114396/head
Franck Nijhof 2024-03-28 16:20:20 +01:00 committed by GitHub
parent f9aa7d34f8
commit 192fad040a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

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.",