Fix hassfest icon schema for service only (#108494)

This commit is contained in:
Franck Nijhof 2024-01-20 20:39:05 +01:00 committed by GitHub
parent 6374ee9378
commit 2b90d968b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,7 @@ def icon_schema(integration_type: str) -> vol.Schema:
)
return base_schema.extend(
{
vol.Required("entity"): cv.schema_with_slug_keys(
vol.Optional("entity"): cv.schema_with_slug_keys(
cv.schema_with_slug_keys(
icon_schema_slug(vol.Optional),
slug_validator=translation_key_validator,