node-red-contrib-homebridge-automation 0.3.0-beta.7 → 0.3.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-homebridge-automation",
3
- "version": "0.3.0-beta.7",
3
+ "version": "0.3.0-beta.8",
4
4
  "description": "NodeRED Automation for HomeBridge",
5
5
  "main": "src/HAP-NodeRed.js",
6
6
  "scripts": {
@@ -56,7 +56,7 @@ class HBConfigNode {
56
56
  const updatedDevices = await this.hapClient.getAllServices();
57
57
  if (this.debugLogging && updatedDevices && updatedDevices.length && process.uptime() < 300) {
58
58
  try {
59
- const storagePath = path.join(process.cwd(), '/homebridge-automation-endpoints.json');
59
+ const storagePath = path.join(process.cwd(), 'homebridge-automation-endpoints.json');
60
60
  this.warn(`Writing Homebridge endpoints to ${storagePath}`);
61
61
  fs.writeFileSync(storagePath, JSON.stringify(updatedDevices, null, 2));
62
62
  } catch (e) {