Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
Changed double quotes to single quotes.
Removed deprecated config.json parameters.
Removed superfluous on(’get’, …) handlers as HAP-NodeJS already caches
the HomeKit value.
  • Loading branch information
ebaauw committed Apr 2, 2017
1 parent f29e936 commit 3021287
Show file tree
Hide file tree
Showing 3 changed files with 220 additions and 213 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// homebridge-zp/index.js
// (C) 2016-2017, Erik Baauw
// Copyright © 2016, 2017 Erik Baauw. All rights reserved.
//
// Homebridge plug-in for Sonos ZonePlayer.

"use strict";
'use strict';

const dynamic = false;

const ZPPlatformModule = require("./lib/ZPPlatform");
const ZPPlatformModule = require('./lib/ZPPlatform');
const ZPPlatform = ZPPlatformModule.ZPPlatform;

module.exports = function(homebridge) {
ZPPlatformModule.setHomebridge(homebridge);
homebridge.registerPlatform("homebridge-zp", "ZP", ZPPlatform, dynamic);
homebridge.registerPlatform('homebridge-zp', 'ZP', ZPPlatform, dynamic);
};
Loading

0 comments on commit 3021287

Please sign in to comment.