Always patch ha-card
Note
Always patch ha-card available in 8.2.0-beta.1
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.