From e72309fab0005bacc2c729becd79b1efccb60ff4 Mon Sep 17 00:00:00 2001 From: Dennis Soderstrom Date: Sat, 24 Oct 2015 12:39:43 +0200 Subject: [PATCH] Handle where no model is returned from Telldus Live --- platforms/TelldusLive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/TelldusLive.js b/platforms/TelldusLive.js index 0e861b5..fd479d9 100644 --- a/platforms/TelldusLive.js +++ b/platforms/TelldusLive.js @@ -58,7 +58,7 @@ var TelldusLiveAccessory = function TelldusLiveAccessory(log, cloud, device) { this.log = log; this.cloud = cloud; - var m = device.model.split(':'); + var m = device.model ? device.model.split(':') : ['unknown', 'unknown'] ; // Set accessory info this.device = device;