Skip to content

Commit 9ec1d25

Browse files
Merge pull request #3 from doldis77/master
Support negative temperatures
2 parents c098828 + 2f351f9 commit 9ec1d25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ function HTTP_TEMPERATURE(log, config) {
4040

4141
this.homebridgeService = new Service.TemperatureSensor(this.name);
4242
this.homebridgeService.getCharacteristic(Characteristic.CurrentTemperature)
43+
.setProps({
44+
minValue: -100,
45+
maxValue: 100
46+
})
4347
.on("get", this.getTemperature.bind(this));
4448

4549
/** @namespace config.pullInterval */

0 commit comments

Comments
 (0)