Skip to content

Commit

Permalink
Add missing 'subtype' property
Browse files Browse the repository at this point in the history
  • Loading branch information
dxdc committed Feb 10, 2020
1 parent c1aaf38 commit ecd8b99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ BlindsHTTPAccessory.prototype.getServices = function() {
this.services.push(this.service);

if (this.showStopButton && (this.stopURL || this.useSameUrlForStop)) {
const stopService = new Service.Switch(this.name + ' Stop');
const stopService = new Service.Switch(this.name + ' Stop', 'stop');
stopService
.getCharacteristic(Characteristic.On)
.on('set', this.sendStopRequest.bind(this, stopService));
Expand All @@ -345,7 +345,7 @@ BlindsHTTPAccessory.prototype.getServices = function() {
}

if (this.showToggleButton) {
const toggleService = new Service.Switch(this.name + ' Toggle');
const toggleService = new Service.Switch(this.name + ' Toggle', 'toggle');
toggleService
.getCharacteristic(Characteristic.On)
.on('set', this.sendToggleRequest.bind(this, toggleService));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-blinds",
"version": "1.3.10",
"version": "1.3.11",
"description": "A homebridge plugin to control my blinds",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit ecd8b99

Please sign in to comment.