From c93b0b0df10596161f39fa39836c1ed6aaaf227d Mon Sep 17 00:00:00 2001 From: Raoul Date: Mon, 8 Feb 2016 22:18:54 +0100 Subject: [PATCH] Update platformAccessory.js Small type, big result. --- lib/platformAccessory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/platformAccessory.js b/lib/platformAccessory.js index d4a3fb4..e81933a 100644 --- a/lib/platformAccessory.js +++ b/lib/platformAccessory.js @@ -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; } }