sahilchaddha / homebridge-yeelight-platform

Homebridge plugin for Yeelight Lights supporting Scenes/Moods/Color Flow/Custom Presets/Music Flow/Night Mode
MIT License
58 stars 7 forks source link

Fix defaults not using false #3

Closed alon-z closed 5 years ago

alon-z commented 5 years ago

Using || made it so it will always default to true. That way addResetSwitch and shouldTurnOff were not set to false. Fixed it by using typeof.

sahilchaddha commented 5 years ago

Thanks @alonikomax for finding the bug & fixing it. Appreciate your contribution. Allow me some time to release a new version on npm