Adapted from the canonical English UIX documentation by Lint-Free-Technology/uix, CC BY 4.0. Source:
master/ 9.0.0, revision f63ebbd, reviewed 5 November 2026. Requires Home Assistant 2026.11.0 or later. Markup adapted for this site; the original documentation remains authoritative.
Always patch ha-card
By default, UIX does not patch ha-card if it cannot find a card config in the first Frontend or custom element in its ancestor DOM tree. This experimental option allows for always patching ha-card element so theme variable uix-card(-yaml) can apply. ha-card without config may be used on config or custom panels.
When ha-card is patched without config the class type-generic-card will be added to ha-card.
Setting via the integration UI
The option is unset by default. To set the option:
- In Home Assistant, go to Settings → Devices & Services → UI eXtension → Configure.
- Select Experimental settings from the menu.
- Toggle Always patch ha-card on.
- Save.
The setting is available immediately across all connected browser sessions. A page reload may be required for the setting to take effect.
Behavior when set
When this option is set:
ha-cardis always patched even when there is no card config available.- When patched in this way the class
type-generic-cardwill be added toha-card.
