Card_mod doesn't work in scheduler-card anymore?

Hello everybody !

All my custom modifications on my scheduler card didn’t work from some weeks now?
Do you encountered the same issue?

An example of the code which does’t work :slight_smile:

type: custom:scheduler-card
include:
  - light.radiateurs_zone_nuit
exclude: []
tags:
  - ZONE_NUIT
display_options:
  primary_info: default
  secondary_info: []
  icon: action
title: Zone NUIT
sort_by:
  - relative-time
card_mod:
  style: |
    :host {
       --card-mod-icon: mdi:weather-sunny;
       --state-icon-color: #FFC107;
       --switch-checked-button-color: #FFC107;
       --switch-checked-track-color: #FFC107;
    }
    .show-more {
      display: none;
    }
    .card-actions {
      display: none;
    }
    div.card-header {
      display: none;
    }
    div.card-content {
      padding: 8px 10px 0px 10px;
    }
    ha-card div.schedule-row {
      margin: 0;
    }
    ha-card {
      border: 3px solid #7CA870;
      background-color: rgb(124 168 112 / 50%);
    }
    ha-card div.schedule-row .info {
      margin-left: 4px;
    }

Thank you for help :slight_smile:

I am not sure if this is the same problem but card_mod 3.5.0 has bugs, I went back to 3.4.4. .

Hey :slight_smile:

Indeed. I rolled back to the 3.4.4 version and it works again.
Not used to do this but I should have this reflex.

Thank you very much @vingerha

As mentioned…spent HOURS on this yesterday until I accidentally bumped into a post around this topic. HACS actually no longer shows 3.5.0 and imo it should ideally inform people that they are using a no-longer-available version

1 Like