ofekashery / vertical-stack-in-card

📐 Home Assistant Card: Group multiple cards into a single sleek card.
MIT License
888 stars 78 forks source link

Issues with input_number #18

Closed VirtualL closed 6 years ago

VirtualL commented 6 years ago

Hi, I getting this Warning : https://MYSERVER.COM/frontend_latest/eb618cf11a4eca6918ea.chunk.js:266:14994 TypeError: null is not an object (evaluating 'this.shadowRoot.querySelector("paper-slider").offsetWidth')

The config:

      - type: custom:vertical-stack-in-card
        cards:   
          - type: markdown
            content: >
              ### Alarm Clock

          - type: entities
            entities:
              - input_boolean.alarm_clock_status
              - entity: sensor.alarm_clock_time
                name: Selcted Time
              - input_number.alarm_clock_minute
              - input_number.alarm_clock_hour

If I will remove the input_number entities , the warning will disappear

Thanks again!

VirtualL commented 6 years ago

It appears that the issue is with the "input_number" in general , i will open this problem in HA GitHub in this config is happen , to

      - type: entities
        title: "Boiler Timer"
        show_header_toggle: false
        entities:
          - switch._mqtt_pow1
          - type: divider
          - script.timer_off_boiler
          - input_number.slider_boiler
          - sensor.pow1_current

Please Close this issue 👍

VirtualL commented 6 years ago

Hi , I just checked again and the issue happens only in Safari Browser and when I use this card , in the built-in vertical-stack its not make this warning.

Please make this issue open again. basic config to get this warning:

      - type: custom:vertical-stack-in-card
        cards:   
          - type: entities
            entities:
              - input_number.alarm_clock_hour
              - input_number.alarm_clock_minute
ofekashery commented 6 years ago

It looks like it's issue in HA. Polymer issue #1578 Lovelace UI issue #118

I really don't know why the error does not appear on vertical-stack card.

VirtualL commented 6 years ago

Hi Ofek , The issus was Fix you can close :) https://github.com/home-assistant/home-assistant-polymer/pull/1557

ofekashery commented 6 years ago

Good!