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

TypeError: undefined is not an object (evaluating 'config.style.height') #32

Open
w0vka opened this issue Sep 14, 2021 · 1 comment
Open

Comments

@w0vka
Copy link

w0vka commented Sep 14, 2021

Hi there,
i have noticed that a few days ago my lovelace dashboad isn't showing any circle-sensor-card details..
The problem seems to be since the card version 1.2.1.

I could see this error in my logs:

Logger: frontend.js.latest.202108300
Source: components/system_log/__init__.py:190
First occurred: 9:42:40 AM (415 occurrences)
Last logged: 11:47:19 AM

https://myurl.duckdns.org:****/hacsfiles/circle-sensor-card/circle-sensor-card.js?hacstag=141952963122:30:181 TypeError: undefined is not an object (evaluating 'config.style.height')
:0:0 Script error.
https://myurl.duckdns.org:****/hacsfiles/circle-sensor-card/circle-sensor-card.js?hacstag=141952963121:24:36 Uncaught TypeError: Cannot read properties of undefined (reading 'height')
https://myurl.duckdns.org:****/hacsfiles/circle-sensor-card/circle-sensor-card.js:30:36 Uncaught TypeError: Cannot read properties of undefined (reading 'height')

After downgrade to 1.2.0 the dashboard is showing all the details again.
Ha version is 2021.9.6

@iamMonzurul
Copy link

iamMonzurul commented Feb 9, 2022

Please add the style property to fix the issue.

style:
    top: 50%
    left: 50%
    width: 100%
    height: 100%

Like this:

color_stops:
    50: '#55FF55'
    75: '#5555FF'
    100: '#FF5555'
style:
    top: 50%
    left: 50%
    width: 100%
    height: 100%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants