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

debug_cardmod: true not working #58

Closed
4 tasks done
KTibow opened this issue Jul 21, 2020 · 6 comments
Closed
4 tasks done

debug_cardmod: true not working #58

KTibow opened this issue Jul 21, 2020 · 6 comments
Labels
documentation Improvements or additions to documentation

Comments

@KTibow
Copy link
Contributor

KTibow commented Jul 21, 2020

My Home Assistant version: 0.112.4

My lovelace configuration method (GUI or yaml): GUI (but using YAML to control card-mod)

What I am doing: Trying to set the background color of layout-card and expecting debug info

What I expected to happen: In the console I could see debug info

What happened instead: I saw nothing

Minimal steps to reproduce:

# The least ammount of code possible to reproduce my error
# Any type works, but here I use the entities type
type: entities
entities:
  - person.kendell
debug_cardmod: true
style:
  .: |
    * {
      background-color: red !important;
    }
# End of code

Error messages from the browser console:
None, except for an annoying unrelated card-tools one:

card-tools.js:1 Uncaught (in promise) TypeError: Cannot read property '_addCard' of null
    at card-tools.js:1
    at new Promise (<anonymous>)
    at Module.<anonymous> (card-tools.js:1)
    at r (card-tools.js:1)
    at card-tools.js:1
    at card-tools.js:1

By putting an X in the boxes ([ ]) below, I indicate that I:

  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).

  • Have made sure I am using the latest version of the plugin.

  • Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.

  • Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.

@thomasloven thomasloven added the documentation Improvements or additions to documentation label Oct 8, 2020
@de0xyrib0se
Copy link

Same behavior on 0.116.2

@KTibow
Copy link
Contributor Author

KTibow commented Oct 13, 2020

thomasloven has removed this option from card-mod, that's why it's marked as docs.

@thomasloven
Copy link
Owner

This feature has been removed.

@KTibow
Copy link
Contributor Author

KTibow commented Feb 26, 2021

Just curious why. It doesn't seem like adding a if (config.debug_cardmod) console.log("shadow-rooting into", name) (psuedocode of course) would be very hard.

@thomasloven
Copy link
Owner

Debug information adds a surprising number to the final size of the package, and I never liked how messy the output was anyway.

I have added some tips on debugging using your browsers developer tools to the readme.

@KTibow
Copy link
Contributor Author

KTibow commented Feb 26, 2021

Interesting. Then this sounds like this is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants