thomasloven / lovelace-state-switch

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

this.cards[k].getCardSize is not a function #110

Open zarya opened 9 months ago

zarya commented 9 months ago

On initial dashboard load this error is displayed image

Version: 1.9.5 (Downloaded via HACS)

Work around

Click the refresh button in the top right, after the refresh the error goes away.

Used configuration

          - type: custom:state-switch                                                                                            
            entity: sensor.openweathermap_condition                                                                              
            default: default                                                                                                     
            view_layout:                                                                                                         
             grid-area: cam                                                                                                      
            states:                                                                                                              
              default:                                                                                                           
                type: iframe                                                                                                     
                url: /local/weather.html                                                                                         
                card_mod:                                                                                                        
                  style: |                                                                                                       
                    iframe { height: 150% !important; top: -25% !important; }