Formats an entity's display name from its registry context.
Accepts a plain string (returned as-is), a single name item, an array of
items joined with the separator, or undefined for the default name.
Since
Home Assistant 2026.4 in this shape. The helper exists from 2025.10,
but took bare type strings then, and only accepted EntityNameItems
between 2025.11 and 2026.3 - so feature detection is not sufficient, check
hass.config.version before calling with a card's name option.
Entity registry keyed by entity_id.