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.

Styles are not applied when used with auto-entities

See original GitHub issue

My Home Assistant version: 2022.4.0.dev20220228

My lovelace configuration method (GUI or yaml): YAML

What I am doing:

showing badge card which is auto-filled by auto-entities and justify the badges

What I expected to happen:

immediate effect (as before, somehow latest are releases frustrate correct operation)

What happened instead:

need a resize window in the browser to have the mod be effective, ast least showing the mod is ok.

Minimal steps to reproduce:

# The least amount of code possible to reproduce my error
type: custom:mod-card
card_mod:
  style:
    badge-card:
      $: |
        div#badges {
          display: flex;
          justify-content: space-around;
        }
card:
  type: custom:auto-entities
  card:
    type: custom:badge-card
  filter:
    include:
      - domain: person

# End of code

using a fixed set of badges:

  - type: custom:badge-card
    card_mod:
    style: |
      div#badges {
        display: flex;
        justify-content: space-around;
      }
    badges:
      - sensor.weather_animated_icon
      - sensor.badge_wind_compass
      - sensor.wind_bft

always works, proving the mod to be correct

Error messages from the browser console:

no errors

By putting an X in the boxes ([]) below, I indicate that I:

  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).

  • Have made sure I am using the latest version of the plugin.

  • Have followed the troubleshooting steps of the “Common Problems” section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.

  • Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Mariusthvdbcommented, Mar 16, 2022

changed that. thx

0reactions
ildar170975commented, Mar 16, 2022

Marius, the issue should be renamed to “Styles may not be applied when using for auto-entities” probably…

Read more comments on GitHub >

github_iconTop Results From Across the Web

When used with auto-entities card, styling changes do not ...
What I am doing: Using card-mod to change the background color of an auto entities card. What I expected to happen: Card background...
Read more >
🔹 Auto-entities - Automatically fill cards with ...
This lovelace plugin lets you automatically put entities into lovelace cards. ... If not - then your way is using that card inside...
Read more >
Style Sheets in HTML documents
To make it easier to manage style on a site basis, this specification describes how to use HTTP headers to set the style...
Read more >
list-style-type - CSS: Cascading Style Sheets - MDN Web Docs
However, the list-style-type property may be applied to any element whose display value is set to list-item . Moreover, because this property is ......
Read more >
Detailed Instructions for Application for Texas Title and/or ...
Applying for (please check one): Select “Title & Registration” if applying for both ... Vehicle Makes and Body Styles (Form VTR-249) for more...
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