Skip to content

Commit

Permalink
Skip configurable airQualityName
Browse files Browse the repository at this point in the history
  • Loading branch information
hannseman committed Mar 17, 2024
1 parent 6c3c801 commit 2fb0565
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/accessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,6 @@ class HygrothermographAccessory {
this.publishValueToMQTT(this.batteryMQTTTopic, this.batteryLevel);
}

get airQualityName() {
return this.config.airQualityName || "AirQuality";
}

get batteryLevel() {
if (this.hasTimedOut()) {
return;
Expand Down Expand Up @@ -574,7 +570,7 @@ class HygrothermographAccessory {
if (!this.isFakeGatoEnabled) {
return;
}
const airQualityService = new Service.AirQualitySensor(this.airQualityName);
const airQualityService = new Service.AirQualitySensor("AirQuality");
airQualityService
.getCharacteristic(Characteristic.AirQuality)
.on("get", this.onCharacteristicGetValue.bind(this, "airQuality"));
Expand Down

0 comments on commit 2fb0565

Please sign in to comment.