dummylabs / thewatchman

Home Assistant custom integration to keep track of missing entities and services in your config files
MIT License
460 stars 17 forks source link

Look for unused dashboard resources #60

Open Reynders1 opened 2 years ago

Reynders1 commented 2 years ago

Hi,

Would it be possible to add a function to look for unused dashboard resources? After a while, the configuration may become messy with a lot of unused resources. Thanks.

dummylabs commented 1 year ago

Duplicate of #26

Reynders1 commented 1 year ago

Thanks. I’ll give it a try.

Christian Reynders On 13. Oct 2022 at 13:53 +0200, dummylabs @.***>, wrote:

Duplicate of #26 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Reynders1 commented 1 year ago

Hi,

I tried it and is not addressing what I was suggesting. The test I did is the following:

• Install any frontend from HACS and add it to your resources • Don’t use this frontend • Run watchman report

My suggestion was that frontend would appear on the report as an unused resource. This is not the case.

Did I miss a something?

Christian Reynders On 13. Oct 2022, 17:15 +0200, Christian Reynders @.***>, wrote:

Thanks. I’ll give it a try.

Christian Reynders On 13. Oct 2022 at 13:53 +0200, dummylabs @.***>, wrote:

Duplicate of #26 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

dummylabs commented 1 year ago

Ah, sorry, I've misread term "resources" here, your idea sounds good for me! It seems like a feasible feature, at least for the resources, which call customElements.define() to register a custom dashboard element. That is, this will not work for stuff like custom themes and icons. I'll move it to the enhancements category.

Reynders1 commented 1 year ago

Great! Thanks.

PhillyGilly commented 1 year ago

I'm not sure if my problem is different from or a subset of this issue. I want to know if my dashboard has errors on it. The way I use Watchman to help with this is: