From 995ccdc8b686918206145a296091ee6df7e8bda8 Mon Sep 17 00:00:00 2001 From: alesf Date: Sat, 16 Jan 2021 11:53:32 +0100 Subject: [PATCH] rename --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 0cfbf34..15cad03 100755 --- a/index.js +++ b/index.js @@ -7,13 +7,13 @@ module.exports = function (homebridge) { Service = homebridge.hap.Service; Characteristic = homebridge.hap.Characteristic; - homebridge.registerAccessory("homebridge-air-quality", "AirQuality", AirQuality); + homebridge.registerAccessory("homebridge-http-air-quality", "HttpAirQuality", HttpAirQuality); }; /** * Air Accessory */ -function AirQuality(log, config) { +function HttpAirQuality(log, config) { this.log = log; this.pollingInterval = config.pollingInterval || 300; @@ -46,7 +46,7 @@ function AirQuality(log, config) { }; } -AirQuality.prototype = { +HttpAirQuality.prototype = { // wrapper for updateData method (new data/cache) setData: function (params) {