FamousWolf / week-planner-card

Custom Home Assistant card displaying a responsive overview or multiple days with events from one of multiple calendars
MIT License
209 stars 17 forks source link

hideDaysWithoutEvents=true does not hide today #143

Closed tde01065 closed 3 weeks ago

tde01065 commented 2 months ago

If hideDaysWithoutEvents=true, today is still visible even when empty. Please see screenshot for example. Please note that the days between today (idag) and Saturday (lördag) are hidden. image

Current configuration:

type: custom:week-planner-card
title: Siris matcher
compact: true
hideDaysWithoutEvents: true
days: 4
locale: sv
card_mod:
style: |
  .event.ongoing {
    font-weight: bold;
  }
  .event.past {
    opacity: .3;
  }
texts:
today: 'idag'
tomorrow: 'imorgon'
calendars:
- entity: calendar.women_s_volleyball_goccusports_com
FamousWolf commented 1 month ago

This is by design and is mentioned in the documentation. I could however add a hideTodayWithoutEvents configuration.

FamousWolf commented 3 weeks ago

This has been added and will be included in the 1.8.0 release.

tde01065 commented 2 weeks ago

Great job! I missed the detail about the existing function wasn't valid for today.