Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105862

Property error but resolves the value?

$
0
0

Hi all. Does anyone know what the error is? When I show the value that the console.log returns it says 7 but after that it says that it cannot read the attributes property. I do not understand what is happening. Why does it display the value 7 if it can’t read the attributes property? Thanks

This only happens when there are no active conditional cards. If there is one running there is no error

7
button-card.js:425 ButtonCardJSTemplateError: TypeError: Cannot read properties of undefined (reading 'attributes') in 'console.log(states['input_select.players_home'].attributes.options.length);
  let cantMedias = sta...'
    at Je.eval (eval at _evalTemplate (button-card.js:425:9295), <anonymous>:16:24)
  players_home:
    initial: Ultima descarga
    options:
      - Ultima descarga
      - Dormitorio_Ana
      - Chromecast 2
      - bdv_n9200w
      - Echo_Dot
      - Spotify
      - Google_Mini

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105862

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>