Update platformAccessory.js

Some more copy-and-paste errors in the same line.
Was wondering why my platform was failing, but never looked to that simple lines of code :-(
This commit is contained in:
Raoul
2016-02-08 23:06:32 +01:00
parent c93b0b0df1
commit 7dd8e12791

View File

@@ -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) || (UUID.UUID === service.UUID)) && service.subtype === subtype)
else if (typeof UUID === 'function' && ((service instanceof UUID) || (UUID.UUID === service.UUID)) && service.subtype === subtype)
return service;
}
}