thomasloven / lovelace-card-mod

🔹 Add CSS styles to (almost) any lovelace card
MIT License
1.05k stars 169 forks source link

card-mod spamming events #297

Open silviudc opened 9 months ago

silviudc commented 9 months ago

My Home Assistant version: 2023.9.2

My lovelace configuration method (GUI or yaml):

What I am doing: nothing out of the ordinary

What I expected to happen: not log this many events

What happened instead: the following event is spamming the database and I am not sure where it comes from, almost 3 million rows in the last 4-5 days after purging the recorder history image

Minimal steps to reproduce:

# The least amount of code possible to reproduce my error
{"domain":"system_log","service":"write","service_data":{"logger":"frontend.js.latest.202309110","message":"Unhandled promise rejection from Chrome 90.0.4430.225 on Android\nTypeError: t.refresh is not a function\n/hacsfiles/lovelace-card-mod/card-mod.js:5:1382","level":"debug"}}
# End of code

Error messages from the browser console: not an error but excessive logging to the database


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

ildar170975 commented 9 months ago

According to your screenshot, these messages comes from Android, you have not specified this. Do you see these things with a normal desktop?

silviudc commented 9 months ago

I have various tables/phones around the house and I went to all of them but cannot find anything with webview/chrome 90.0.4430.225 just yet. I will keep looking (unless it can be from the google nest hub, but not sure how to check that one) Is there a way to stop it logging those at least?

ildar170975 commented 9 months ago

Do you have a desktop PC with a normal browser?

silviudc commented 9 months ago

Yes desktop with chrome browser on version 117.0.5938.92

ildar170975 commented 9 months ago

Then why not testing on it as it was already proposed?

silviudc commented 9 months ago

Ok so how to test, these events are happening constantly it seems, whether I use the desktop or not

ildar170975 commented 9 months ago

We are running in cycles))) I asked earlier: “Do you see these things with a normal desktop?” Now you said - “on desktop too”. Seems that your issue was reported earlier, check one of the latest ones.

silviudc commented 9 months ago

Ok sorry, I thought you meant can you test this on a desktop. Not sure because I only ever see the "android" event being logged. As far as I can see nothing is broken on any device in fact, I would just like to stop the event spam somehow. Seems like it started recently and I haven't connected any new devices to home assistant

ildar170975 commented 9 months ago

This is a Frontend issue, not related to devices