Skip to content

0.7.0 - Allow limited custom style injection and remove other unused bits ☘️🥼

Choose a tag to compare

@github-actions github-actions released this 03 Dec 02:53

Custom Styles Injection

Added support for custom styles injection, similar to room-summary-card. Users can now inject custom CSS properties into specific parts of the card via YAML configuration:

  • Card styles: Apply custom CSS to the main card container
  • Section styles: Apply custom CSS to collapsible sections (switches)
  • CSS variable: New --user--section--caret--display variable allows users to control the visibility of section carets (e.g., set to none to hide them)

Example configuration:

type: custom:adguard-card
device_id: your_device_id
styles:
  card:
    border-radius: 20px
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)
  section:
    --user--section--caret--display: none
    background-color: rgba(0, 0, 0, 0.1)

Removed Footer Section

Removed footer section (refresh time and version updates) as these features are not applicable to AdGuard integration. This removes a random horizontal bar that shows at the bottom :)

Removed Card Actions/Controls Section

Removed the card actions/controls section entirely as it's not applicable to AdGuard card. This includes:

  • Removed controls configuration option from the card config
  • Removed action buttons section (previously displayed button entities)
  • Removed actions from collapsible sections options
  • Removed actions from exclude sections options
  • Removed all related translations, styles, and tests

The card now focuses solely on displaying switches for toggling AdGuard filtering, statistics, sensors, and other relevant information without the action buttons functionality.


What's Changed

  • Allow limited custom style injection and remove other unused bits ☘️🥼 by @warmfire540 in #8

Full Changelog: 0.6.0...0.7.0