cflurin / homebridge-punt

Homebridge Plugin
Apache License 2.0
21 stars 0 forks source link

define this.request also if auth not set #2

Closed braekling closed 8 years ago

braekling commented 8 years ago

If not authentication details aren't set, this.request won't be defined. This causes following error: TypeError: Cannot call method 'get' of undefined at Gateway. (/usr/local/lib/node_modules/homebridge-punt/gateway.js:219:18) The committed fix makes sure this.request will be defined even without auth details.

cflurin commented 8 years ago

@braekling: thanks for testing homebridge-punt. I didn't check it but I'll merge your pull request.