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: Cannot read properties of undefined (reading 'type') #27

Closed
sooslaca opened this issue Aug 17, 2023 · 1 comment
Closed

TypeError: Cannot read properties of undefined (reading 'type') #27

sooslaca opened this issue Aug 17, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@sooslaca
Copy link

Hello, very nice plugin indeed, thanks for your work!

A little feedback to make the plugin better:

[8/17/2023, 10:00:28 PM] TypeError: Cannot read properties of undefined (reading 'type')
     at LoxonePlatform.parseLoxoneConfig (/homebridge/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:63:39)
     at LoxonePlatform.LoxoneInit (/homebridge/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:34:10)
     at HomebridgeAPI.<anonymous> (/homebridge/node_modules/homebridge-loxone-proxy/src/LoxonePlatform.ts:23:7)

Tracked problem back to this line: https://github.com/rudyberends/homebridge-loxone-proxy/blob/master/src/LoxonePlatform.ts#L63

Fix was easy: the UI element that I use was set 'Category' to 'do not use' in Loxone Config. I turned it to something else which is real category.

I'm not sure what is the use of .type, maybe just don't check it?

@rudyberends
Copy link
Owner

rudyberends commented Aug 18, 2023

Thank you for your feedback.

f03c686 Should fix your issues. It's in the latest beta. Perhaps you can test it?

edit: it’s now also in the latest release.

@rudyberends rudyberends added the bug Something isn't working label Aug 18, 2023
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

2 participants