anthonywebb / homebridge-cbus

CBus plugin for homebridge
MIT License
35 stars 20 forks source link

fix to #48 #49

Closed simonhac closed 7 years ago

simonhac commented 7 years ago

i was loading a JSON file using a relative path -- i though it would be relative from the JS file, but instead it is relative from the user's CWD. in my case these are the same directory, so it worked by accident.

i've changed it to use the correct way to load a JSON file: require.

simonhac commented 7 years ago

thanks @anthonywebb!