From 30afaa6fb6017e17112305a21e1436aa293c9021 Mon Sep 17 00:00:00 2001 From: dacarson <44933987+dacarson@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:25:56 -0700 Subject: [PATCH] Update currentConditions.js Fix #291 When joining arrays, concat() does not modify the original array, it returns a new array concatenated array. --- accessories/currentConditions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accessories/currentConditions.js b/accessories/currentConditions.js index 620ab81..f0ea5db 100644 --- a/accessories/currentConditions.js +++ b/accessories/currentConditions.js @@ -141,7 +141,7 @@ function CurrentConditionsWeatherAccessory(platform, stationIndex) } } }); - this.services.concat(compatibility.getServices(this)); + this.services = this.services.concat(compatibility.getServices(this)); // Create information service this.informationService = new Service.AccessoryInformation();