question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error: hours_to_show even though that isn't used in the card config

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

0reactions
Mariusthvdbcommented, May 10, 2021

I believe this will also make the part of the code throwing the dark_mode error never run when it can’t.

sorry to report, I see the dark_mode error (again, thought it was gone, maybe I didn’t watch closely enough though)

it happens on the same config as https://github.com/thomasloven/lovelace-auto-entities/issues/189#issuecomment-836460232, and also only when using the excluded filter in that config. the dark_mode revealed itself again after I updated the latest browser_mod. I am sure, because when I edited the linked issue today, I hadn’t updated browser_mod yet, and the error wasn’t there.

Chrome: Schermafbeelding 2021-05-10 om 15 06 34

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lovelace: mini graph card - Dashboards & Frontend
Found my error: i disabled “history” and “logbook” in the configuration.yaml. If you do this, the mini graph card isn't able to display...
Read more >
Minimalistic uptime card for Home Assistant Lovelace UI
Uptime Card. A minimalist card inspired by the reddit status UI to display binary sensors in a nice way. Install. ⚠️ Versions 0....
Read more >
Populating Location Data for the Outlook Places Service
The Outlook Places service is used by Outlook clients to present metadata about meeting locations to users. Currently, OWA is the only ...
Read more >
How to get the opening hours to show on a Facebook ... - Quora
To add or change business hours: 1. From your News Feed, click Pages in the left menu. 2. Go to your Page and...
Read more >
Purchase Issues/Purchased item not showing up — Toca Life
NOTE: Google has made the decision to pause all purchases in Russia in the coming days . This means that if you're based...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found