Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atomic Calendar Revive prevents Media Control Card from loading in HA 2021.11.0 #524

Closed
2 tasks done
ResteNarquois opened this issue Nov 4, 2021 · 3 comments
Closed
2 tasks done
Labels
type/bug Something isn't working

Comments

@ResteNarquois
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Lovelace tabs with the core HA Media Control Card will not load the card if the Atomic Calendar Revive card has already been loaded in another tab. If you load a tab with a Media Control Card first, then ACR will not load.

The debug window in Firefox 94.0 shows this error:

'Uncaught (in promise) DOMException: CustomElementRegistry.define: 'mwc-linear-progress' has already been defined as a custom element'

Removing the ACR card from Lovelace resources fixes the issue.

Expected behaviour

I would expect both cards to load without issues

Steps To Reproduce

  1. Lovelace dashboards using standard Media Control Card and Atomic Calendar Revive Card
  2. Using Firefox 94.0 web browser
  3. Load dashboards into web browser
  4. Firefox debug window shows this error: 'Uncaught (in promise) DOMException: CustomElementRegistry.define: 'mwc-linear-progress' has already been defined as a custom element'
  5. Removing the ACR card from Lovelace resources allows the Media Control card to function as normal

Card Version

6.02b

Home Assistant Version

2021.11.0

Configuration

################################################################################
  ##============================= LOVELACE TEST ============================##
################################################################################

title: Test
icon: mdi:home-assistant
path: test
cards:
  - type: media-control
    entity: media_player.sitting_room_universal

Relevant log output

Uncaught (in promise) DOMException: CustomElementRegistry.define: 'mwc-linear-progress' has already been defined as a custom element

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ResteNarquois ResteNarquois added the type/bug Something isn't working label Nov 4, 2021
@ResteNarquois
Copy link
Author

@Pierrodu21
Copy link

Same issue here: #525

With screenshots

@marksie1988
Copy link
Collaborator

The current version of the card is not compatible with v2021.11.0 of HA due to some changes made.

I am doing a release shortly please see #519 where this is being tracked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants