Fix hassfest service icons check for custom integrations (#114389)
parent
f9aa7d34f8
commit
192fad040a
|
@ -168,7 +168,8 @@ def validate_services(config: Config, integration: Integration) -> None:
|
||||||
# 2. Check if the service has an icon set in icons.json.
|
# 2. Check if the service has an icon set in icons.json.
|
||||||
# raise an error if not.,
|
# raise an error if not.,
|
||||||
for service_name, service_schema in services.items():
|
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(
|
integration.add_error(
|
||||||
"services",
|
"services",
|
||||||
f"Service {service_name} has no icon in icons.json.",
|
f"Service {service_name} has no icon in icons.json.",
|
||||||
|
|
Loading…
Reference in New Issue