Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Card does't load properly and causes console error #23

Open
TTLucian opened this issue Jan 29, 2021 · 0 comments
Open

Card does't load properly and causes console error #23

TTLucian opened this issue Jan 29, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@TTLucian
Copy link

  • [x ] I updated to the latest version available
  • [x ] I cleared the cache of my browser

MS Edge Version 88.0.705.53 (Official build) (64-bit) on Windows 10

Description of problem:

This card doesn't load correctly:

type: 'custom:stack-in-card'
mode: horizontal
cards:
  - type: button
    name: Settings
    tap_action:
      action: call-service
      service: browser_mod.popup
      service_data:
        title: Bedroom
        deviceID:
          - this
          - dashboard
        card:
          type: 'custom:stack-in-card'
          cards:
            - type: markdown
              content: |
                <font size= 4px>When temperature rises above:</font>
            - type: 'custom:slider-entity-row'
              entity: input_number.max_temp_bedroom
            - type: 'custom:stack-in-card'
              cards:
                - type: markdown
                  content: |
                    <font size= 4px>Set to:</font>
                - type: entities
                  entities:
                    - entity: input_select.mode1_bedroom
                - type: conditional
                  conditions:
                    - entity: input_select.mode1_bedroom
                      state_not: 'off'
                  card:
                    type: entities
                    entities:
                      - type: 'custom:slider-entity-row'
                        entity: input_number.set_temp_bedroom
                      - entity: input_select.swing1_bedroom
                      - entity: input_select.fan1_bedroom

Causes this:

VM500:100 TSS: Counted history being replaced
VM500:105 TSS: caught history
VM500:62 TSS: Checking if repeated 500 times for interval 1000 against data:  {lastTime: 1611932795460, lastCount: 2}
VM500:95 TSS: Counted history being pushed
VM500:105 TSS: caught history
VM500:62 TSS: Checking if repeated 500 times for interval 1000 against data:  {lastTime: 1611932803406, lastCount: 1}
slider-entity-row.js:1 Uncaught (in promise) TypeError: Cannot read property 'states' of undefined
    at input_number.set hass [as hass] (slider-entity-row.js:1)
    at HTMLElement.render (slider-entity-row.js:1)
    at HTMLElement.update (app.924deda6.js:10297)
    at HTMLElement.performUpdate (app.924deda6.js:10297)
    at HTMLElement._enqueueUpdate (app.924deda6.js:10297)
set hass @ slider-entity-row.js:1
render @ slider-entity-row.js:1
update @ app.924deda6.js:10297
performUpdate @ app.924deda6.js:10297
_enqueueUpdate @ app.924deda6.js:10297
Promise.then (async)
_waitForChildren @ stack-in-card.js:208
(anonymous) @ stack-in-card.js:208
_loopChildren @ stack-in-card.js:208
_updateChildren @ stack-in-card.js:208
(anonymous) @ stack-in-card.js:208
Promise.then (async)
_waitForChildren @ stack-in-card.js:208
updated @ stack-in-card.js:204
performUpdate @ stack-in-card.js:148
_enqueueUpdate @ stack-in-card.js:148
async function (async)
_enqueueUpdate @ stack-in-card.js:148
requestUpdateInternal @ stack-in-card.js:148
initialize @ stack-in-card.js:148
initialize @ stack-in-card.js:186
W @ stack-in-card.js:148
et @ stack-in-card.js:186
Et @ stack-in-card.js:200
s @ chunk.455e79b014618741a716.js:2837
(anonymous) @ chunk.455e79b014618741a716.js:2837
d @ chunk.455e79b014618741a716.js:2837
c @ chunk.455e79b014618741a716.js:2837
a @ chunk.455e79b014618741a716.js:2837
_makeCard @ browser_mod.js:1
async function (async)
_makeCard @ browser_mod.js:1
showDialog @ browser_mod.js:1
v @ browser_mod.js:90
async function (async)
v @ browser_mod.js:90
t @ browser_mod.js:149
do_popup @ browser_mod.js:149
popup @ browser_mod.js:149
msg_callback @ browser_mod.js:149
_connection.subscribeMessage.type @ browser_mod.js:149
_handleMessage @ core.94ddb68d.js:1
(anonymous) @ core.94ddb68d.js:1

However, this card works fine:


type: 'custom:stack-in-card'
mode: horizontal
cards:
  - type: button
    name: Settings
    tap_action:
      action: call-service
      service: browser_mod.popup
      service_data:
        title: Bedroom
        deviceID:
          - this
          - dashboard
        card:
          type: 'custom:vertical-stack-in-card'
          cards:
            - type: markdown
              content: |
                <font size= 4px>When temperature rises above:</font>
            - type: 'custom:slider-entity-row'
              entity: input_number.max_temp_bedroom
            - type: 'custom:stack-in-card'
              cards:
                - type: markdown
                  content: |
                    <font size= 4px>Set to:</font>
                - type: entities
                  entities:
                    - entity: input_select.mode1_bedroom
                - type: conditional
                  conditions:
                    - entity: input_select.mode1_bedroom
                      state_not: 'off'
                  card:
                    type: entities
                    entities:
                      - type: 'custom:slider-entity-row'
                        entity: input_number.set_temp_bedroom
                      - entity: input_select.swing1_bedroom
                      - entity: input_select.fan1_bedroom

Is it a bug? Or am I doing something stupid?

@TTLucian TTLucian added the bug Something isn't working label Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant