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

Characteristic Warnings (keeps coming in my log file) #22

Closed
schioth opened this issue Jun 21, 2021 · 1 comment · Fixed by #24
Closed

Characteristic Warnings (keeps coming in my log file) #22

schioth opened this issue Jun 21, 2021 · 1 comment · Fixed by #24

Comments

@schioth
Copy link

schioth commented Jun 21, 2021

[21/06/2021, 13:48:36] [homebridge-volvo] This plugin generated a warning from the characteristic 'Contact Sensor State': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[21/06/2021, 13:48:36] [homebridge-volvo] This plugin generated a warning from the characteristic 'Contact Sensor State': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[21/06/2021, 13:48:36] [homebridge-volvo] This plugin generated a warning from the characteristic 'Contact Sensor State': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[21/06/2021, 13:48:36] [homebridge-volvo] This plugin generated a warning from the characteristic 'Contact Sensor State': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[21/06/2021, 13:48:36] [homebridge-volvo] This plugin generated a warning from the characteristic 'Contact Sensor State': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[21/06/2021, 13:48:36] [homebridge-volvo] This plugin generated a warning from the characteristic 'Contact Sensor State': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.

drakkhen added a commit to drakkhen/homebridge-volvo that referenced this issue Sep 10, 2021
After a bit of tinkering, I figured out the cause of Issues trympet#18, trympet#22, and trympet#23.  The OR (||)
conditional for multiple case values was not working as intended -- they only matched the first
value in each case instead of any of the values separated by ||.

Converting those to use the fall-through feature of the switch statement resolved the problems.
@trympet
Copy link
Owner

trympet commented Sep 12, 2021

Fixed in #24

@trympet trympet closed this as completed Sep 12, 2021
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

Successfully merging a pull request may close this issue.

2 participants