question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Templates don't work on cast in panel mode - includes fix proposal

See original GitHub issue

Please forgive me for ignoring the bug report template. I don’t use the button card myself, but I heard there’s a problem with using templates on Cast if the view is in panel mode.

I believe the problem lies here: https://github.com/custom-cards/button-card/blob/master/src/helpers.ts#L151 and was caused by this: https://github.com/home-assistant/frontend/pull/3796/files#diff-8809bcfc38b194872d9c6d1b323b50e8R44-R58

A possible fix might be to replace the marked line in helpers.ts with:

root = root && (root.querySelector('hui-view') || root.querySelector('hui-panel-view'));

I have not tested this.


Checklist

  • I updated the card to the latest version available
  • I cleared the cache of my browser

Describe the bug A clear and concise description of what the bug is.

Version of the card Version:

To Reproduce This is the configuration I used:


Screenshots If applicable, add screenshots to help explain your problem.

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
thomaslovencommented, Apr 22, 2020

Or I could pull out my nest hub from where it’s gathering dust. I need to implement and test the same change to some of my things anyway…

0reactions
RomRidercommented, Aug 26, 2020

Closing because of inactivity

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating Custom Templates - Unreal Engine Documentation
A custom template is an Unreal Engine project configured such that the engine includes it in the list of templates that appears when...
Read more >
Word stuck in Draft Mode - TechNet - Microsoft
ONE Word file is stuck in draft mode. It can't be the normal.dotx file because it's not affecting other files. Starting in safe...
Read more >
Work with files and templates in Illustrator - Adobe Support
Learn about using files and templates in Adobe Illustrator. Work with new document profiles; create new documents and templates; open and ...
Read more >
What to do when your Prezi won't work
What can you do when your Prezi won't work? This comprehensive guide will help you figure out why your Prezi won't work and...
Read more >
Custom shader fundamentals - Unity - Manual
In our unlit shader template, there is a single texture property declared. SubShader. A Shader can contain one or more SubShaders, which are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found