konnected-io / konnected-security

Konnected connects wired sensors and switches to SmartThings, Home Assistant, Hubitat and OpenHAB
https://konnected.io
Apache License 2.0
416 stars 322 forks source link

Fix panic when settings value is null. #154

Closed h2zero closed 2 years ago

h2zero commented 2 years ago

This fixes a panic that is triggered when a null value provided in a the settings sent.

In 3.0 if the value in the table is null (without quotes) it returns a "lightfunction" instead of "nil". This adds a check for this to prevent corrupting the settings table.