Skip to content

Commit

Permalink
Merge pull request #649 from zazula/master
Browse files Browse the repository at this point in the history
Update index.js
  • Loading branch information
arachnetech committed Nov 26, 2023
2 parents ab3e071 + c5777c2 commit f7e2ef2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3521,10 +3521,13 @@ 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 f7e2ef2

Please sign in to comment.