NorthernMan54 / homebridge-rtl

Homebridge Plugin for rtl_433 devices
MIT License
22 stars 10 forks source link

Fix alarm with 0 (zero) value #6

Closed matopeto closed 3 years ago

matopeto commented 3 years ago

In this PR I fix the issue that alarm can not be set to (0) zero

matopeto commented 3 years ago

@NorthernMan54

This may be BC for someone who sets"alarm": 0 for disabling alarm instead of deleting it from config json

but I think i could handle explicitly "alarm": false? Or it is ok like it is now?

NorthernMan54 commented 3 years ago

Tks very much for this, looks good