Looks like latest update broke card_mod and removal off the icons on my entities

Before the update, the icons were removed from this entity list.

- type: entities
                entities:
                  - entity: sensor.sumry_pv_voltage_1
                    name: Yard PV Voltage
                    card_mod:
                      style:
                        hui-generic-entity-row:
                          $: |
                            state-badge {
                              display: none;
                            }
                            .info {
                              margin-left:0 !important;
                            }
                  - entity: sensor.sumry_pv_current_1
                    name: Yard PV Current
                    card_mod:
                      style:
                        hui-generic-entity-row:
                          $: |
                            state-badge {
                              display: none;
                            }
                            .info {
                              margin-left:0 !important;
                            }    

What is the best way to remove these icons now and the space they take up?

Try the card-mod beta version. It has many fixes (and breaking changes).

1 Like

What do you mean? Update of what ? HA?

Home Assistant update to entities card to fix spacing of conditional rows has mean that card-mod patching method needs to be updated. Card-mod v4 beta has a fix for this.

1 Like

Yes, Home Assistant core

How can I update to card-mod 4?
I see Card Mod 3

if you are using HACS you can select Redownload and select the latest beta under ‘Need a different version?’ Make sure to read the release notes carefully as there is a breaking change that may mean you need to adapt your styling.

ok, I see the beta now. Guess I should get the latest beta…

Yes, latest beta is v4.0.0-beta.6

Thanks Darryn, downloading that beta fixed them.

1 Like

You can remove the following section from your code:

margin-left:0 !important;

It’s not really needed and without unit, it’s doing nothing.