From 2c0b8976586597646e91629575c38d255e57562f Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sun, 4 Feb 2024 22:57:11 +0100 Subject: [PATCH] Allow the helper integrations to omit icon translation field (#109648) --- script/hassfest/icons.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/hassfest/icons.py b/script/hassfest/icons.py index 2b28312284a..60dc2b79f56 100644 --- a/script/hassfest/icons.py +++ b/script/hassfest/icons.py @@ -77,9 +77,13 @@ def icon_schema(integration_type: str) -> vol.Schema: ) if integration_type in ("entity", "helper", "system"): + if integration_type != "entity": + field = vol.Optional("entity_component") + else: + field = vol.Required("entity_component") schema = schema.extend( { - vol.Required("entity_component"): vol.All( + field: vol.All( cv.schema_with_slug_keys( icon_schema_slug(vol.Required), slug_validator=vol.Any("_", cv.slug),