recallfx / node-red-contrib-eufy-security

Eufy security node for Node RED
MIT License
6 stars 6 forks source link

Fix for undefined device properties #30

Open stratacorps opened 5 months ago

stratacorps commented 5 months ago

The problem is in utils.js, specifically https://github.com/recallfx/node-red-contrib-eufy-security/blob/cc38cf23a3891925fefaa19f2a4a6d838f721630/eufy-security/utils.js#L21

So when the transformProperties function is called it replaces all values with undefined. Changing utils.js line 21 to this is a simple fix: result[key] = value;