totaldebug / atomic-calendar-revive

An advanced calendar card for Home Assistant Lovelace.
https://docs.totaldebug.uk/atomic-calendar-revive
MIT License
390 stars 62 forks source link

Dashboard Picker does not show this card unless there is a Local Calendar #1495

Closed jackalsdance closed 2 days ago

jackalsdance commented 1 month ago

Is there an existing issue for this?

Current Behavior

HACS says atomic-calendar-revive is correctly loaded. However when I go into a dashboard and try to add a new card, the card picker shows a slot for atomic calendar revive but has a spinning wait icon inside it. In the browser console (Chrome, latest, but can also replicate on Safari) I see the error provided appear

This seems to relate to not having any calendars set up in integrations. I was installing the card ahead of the calendars (mass HACS install session prior to a new dashboard project), so while its understandable to assume there is a calendar, I hadn't done so yet.

Expected behaviour

No error, card shows in picker (and does as soon as you create a local calendar)

Steps To Reproduce

Install via HAS and try to add to a dashboard when you don't have a local calendar in HA Integrations

Mode

Event (default)

Card Version

9.7

Home Assistant Version

2024.5.4

Configuration

not applicable

Relevant log output

"Unhandled promise rejection from Chrome 125.0.0.0 on Mac OS 10.15.7
TypeError: Cannot read properties of undefined (reading 'entity_id')
/hacsfiles/atomic-calendar-revive/atomic-calendar-revive.js:983:26053
t.AtomicCalendarRevive.getStubConfig (/hacsfiles/atomic-calendar-revive/atomic-calendar-revive.js:983:26211)
getCardElementClass (src/panels/lovelace/editor/get-card-stub-config.ts:16:42)
getCustomCardEntry (src/panels/lovelace/editor/card-editor/hui-card-picker.ts:421:8)"

Code of Conduct

github-actions[bot] commented 1 month ago

Hello @jackalsdance, thank you for your interest in our work! If this is a bug report, please provide your configuration and any screenshots that would assist troubleshooting, otherwise we can not help you.

github-actions[bot] commented 2 days ago

:tada: This issue has been resolved in version 10.0.0-beta.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] commented 2 days ago

:tada: This issue has been resolved in version 10.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: