lovelace-auto-entities: error: hours_to_show even though that isn't used in the card config

more info: https://community.home-assistant.io/t/auto-entities-automatically-fill-cards-with-entities/147801/228?u=mariusthvdb

for some reason, using this auto-entities card:

  - type: custom:auto-entities
    card:
      type: map
      title: Map Family abroad
    show_empty: false
    filter:
      include:
        - entity_id: person.*_address
          not:
            attributes:
              country_code: nl

throws an error about hours_to_show even though that isnt used in the config at all…

adding several map options:

  - type: custom:auto-entities
    card:
      type: map
      title: Map Family abroad
    show_empty: false
    filter:
      include:
        - entity_id: person.*_address
          not:
            attributes:
              country_code: nl
          options:
            aspect_ratio: 969
            dark_mode: false
            default_zoom: 14

adds an error on the dark_mode, but since it is set to false, which is default, I can live with deleting it (even though the error still is odd of course.

seems the show_when_empty (which these cards are at the moment) doesnt prevent the card to start looking for entity_id’s

changing to any other country_code (we are all in nl now) takes the error out and displays all entity_id’s.

Also, taking out the ‘not’ option doesn’t help. the issues is reversed in that case, showing the error on any other code than ‘nl’.

to be 100% positive the error is on this card, I’ve tested that on an empty view.

Please have a look why the error on hours_to_show is displayed? thanks

Schermafbeelding 2020-12-18 om 12 12 30

HA 2020.12.1 and latest auto-entities version 1.7.0

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments