thomasloven / lovelace-state-switch

🔹Dynamically replace lovelace cards depending on occasion
MIT License
382 stars 27 forks source link

Issue with cards which are not displayed on screen #47

Closed idoaflalo closed 2 years ago

idoaflalo commented 3 years ago

I used the camera card with the state switch card and suddenly noticed all my cameras(20 units) started. When I checked what was the problem I saw that the css class .column > * won the fight over the class priority with the :host(.no-match) class. I think we should "important" the none value or fix it some way.

https://github.com/thomasloven/lovelace-state-switch/blob/35bd9c8124a4fa81ee2fc582d76c805c8ab188fc/src/main.js#L146-L148

problem-with-state-ha

idoaflalo commented 3 years ago

just noticed it conflicts with the "layout-card" plugin which is where the class .column > * comes from

thomasloven commented 2 years ago

Please try release 1.9.0