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

Handle case when no valid entity is set yet #73

Closed
ikaruswill opened this issue Mar 12, 2022 · 0 comments
Closed

Handle case when no valid entity is set yet #73

ikaruswill opened this issue Mar 12, 2022 · 0 comments

Comments

@ikaruswill
Copy link
Owner

When creating a new card using the default options without a valid entity_id specified, the card fails to render with errors in console.

Default options:

name: Xiaomi Fan
platform: default
entity: fan.fan
disable_animation: false
use_standard_speeds: true
force_sleep_mode_support: false
hide_led_button: false
type: custom:fan-xiaomi

Console:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'device_id')
    at FanXiaomi.configureAsync
ikaruswill added a commit that referenced this issue Mar 12, 2022
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

1 participant