Skip to content

Commit

Permalink
Revert "Merge pull request #649 from zazula/master"
Browse files Browse the repository at this point in the history
This reverts commit f7e2ef2, reversing
changes made to ab3e071.
  • Loading branch information
arachnetech committed Dec 17, 2023
1 parent af5202f commit 52015e3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3521,13 +3521,10 @@ function makeThing( log, accessoryConfig, api ) {
state_Online();
}
}

// always use services array
if( !services ) {
if( service ) {
// send service name to HomeKit
// XXX could also watch for HomeKit name changes...
service.setCharacteristic(Characteristic.ConfiguredName, name);
services = [ service ];
} else {
log( 'Error: No service(s) created for ' + name );
Expand Down

0 comments on commit 52015e3

Please sign in to comment.