Skip to content

Dividers do not work as template in entities cards since HA 0.107 #22

@ronaldheft

Description

@ronaldheft

Since updating Home Assistant to 0.107, my template, which includes a divider for use in entities lists, no longer works.

I'm receiving this message:

Unknown type encountered: divider

Screen Shot 2020-03-21 at 12 23 41 PM

I updated my decluttering card to version 0.4.1 and I have migrated my lovelace resources from ui-lovelace.yaml to the lovelace: section in my config.

If I specify the divider manually (don't use decluttering-card) the divider works fine.

My template is as follows:

large_divider:
  default:
    - opacity: 0.25
  card:
    type: divider
    style:
      background-color: var(--secondary-text-color)
      height: 1px
      margin: 15px auto
      opacity: '[[opacity]]'

I'm using the template as follows:

type: entities
show_header_toggle: false
entities:
  [ ... entities ... ]
  
  - type: custom:decluttering-card
    template: large_divider

  [ ... entities ... ]

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions