totaldebug / atomic-calendar-revive

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

Not working in Fully Kiosk Browser #1503

Closed DaveTiff closed 1 week ago

DaveTiff commented 1 week ago

Is there an existing issue for this?

Current Behavior

On my Desktop PC (Chrome) & HA App (Android) but on my Android tablet I get an error message "Custom element doesn't exist: atomic-calendar-revive"

This worked ok on V9.02

Expected behaviour

The same as my PC

Steps To Reproduce

Upgrade from any version after 9.0.2

Mode

Event (default)

Card Version

9.7

Home Assistant Version

2024.6.4

Configuration

type: custom:atomic-calendar-revive
name: Calendar Card
entities:
  - entity: calendar.xxxxxxxx_hotmail_co_uk
enableModeChange: true
firstDayOfWeek: 1
maxDaysToShow: 3
refreshInterval: 60
showDate: false
dimFinishedEvents: true
calShowDescription: false
showLastCalendarWeek: false
showCurrentEventLine: false
showMonth: true
showDescription: false
showWeekDay: true
showNoEventsForToday: true
showEventIcon: false
showFullDayProgress: false
disableLocationLink: false
showLocation: false
sortByStartTime: false

Relevant log output

No response

Code of Conduct

github-actions[bot] commented 1 week ago

Hello @DaveTiff, 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.

marksie1988 commented 1 week ago

Please try with 9.8.0-beta.3

DaveTiff commented 1 week ago

Ok but Before In do how can I downgrade to 9.0.2, if it does not work, 9.0.2 does not appear in HA options?

marksie1988 commented 1 week ago

If you remove it and then reinstall it you can select a specific version

Mincka commented 1 week ago

I have the same error in Firefox (Windows) for all the beta versions of 9.8. Downgrading to 9.7 works fine.

marksie1988 commented 1 week ago

I'm not sure how that would happen, the only difference between 9.7 and 9.8 beta 1/2 is adding the Spanish locale which wouldn't cause this error.

9.8 beta 3 adds extra compatibility for older devices hence why it's more likely to work with an older device. So if 9.7 works there's no reason 9.8 shouldn't work.

Mincka commented 1 week ago

Hum, actually, it seems that the installation is broken in HACS. I'm having trouble installing beta 3, and only beta 3.

It fails in this HACS method:

        }, {
            kind: "method",
            key: "_installRepository",
            value: async function() {
                var o;
                if (this._installing = !0,
                !this._repository)
                    return;
                const t = this._downloadRepositoryData.version || this._repository.available_version || this._repository.default_branch;
                "commit" !== (null === (o = this._repository) || void 0 === o ? void 0 : o.version_or_commit) ? await f(this.hass, String(this._repository.id), t) : await f(this.hass, String(this._repository.id)),
                this.hacs.log.debug(this._repository.category, "_installRepository"),
                this.hacs.log.debug(this.hacs.info.lovelace_mode, "_installRepository"),
                "plugin" === this._repository.category && "storage" === this.hacs.info.lovelace_mode && await w(this.hass, this._repository, t),
                this._installing = !1,
                this.dispatchEvent(new Event("hacs-secondary-dialog-closed",{
                    bubbles: !0,
                    composed: !0
                })),
                this.dispatchEvent(new Event("hacs-dialog-closed",{
                    bubbles: !0,
                    composed: !0
                })),
                "plugin" === this._repository.category && v(this, {
                    title: this.hacs.localize("common.reload"),
                    text: l`${this.hacs.localize("dialog.reload.description")}<br />${this.hacs.localize("dialog.reload.confirm")}`,
                    dismissText: this.hacs.localize("common.cancel"),
                    confirmText: this.hacs.localize("common.reload"),
                    confirm: ()=>{
                        d.location.href = d.location.href
                    }
                })
            }

{code: 'unknown_error', message: 'Unknown error'}

I tried to install beta 2 again and it seems to work fine. Sorry for my previous post.