Update platformAccessory.js

Small type, big result.
This commit is contained in:
Raoul
2016-02-08 22:18:54 +01:00
parent 9c8812da70
commit c93b0b0df1

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