Skip to content

Commit

Permalink
Merge pull request homebridge#515 from snowdd1/patch-1
Browse files Browse the repository at this point in the history
Update platformAccessory.js
  • Loading branch information
KhaosT committed Feb 8, 2016
2 parents b49fd2d + 7dd8e12 commit 2ad7932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/platformAccessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ PlatformAccessory.prototype.getServiceByUUIDAndSubType = function(UUID, subtype)

if (typeof UUID === 'string' && (service.displayName === UUID || service.name === UUID) && service.subtype === subtype )
return service;
else if (typeof name === 'function' && ((service instanceof name) || (name.UUID === service.UUID)) && service.subtype === subtype)
else if (typeof UUID === 'function' && ((service instanceof UUID) || (UUID.UUID === service.UUID)) && service.subtype === subtype)
return service;
}
}
Expand Down

0 comments on commit 2ad7932

Please sign in to comment.