From c5fed68f7b076cca26933728c559f967660cdb3f Mon Sep 17 00:00:00 2001 From: NolanKingdon Date: Sun, 3 Sep 2023 16:30:17 -0400 Subject: [PATCH] Made provider const again, made localWrapper a return --- modules/default/weather/weatherprovider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/default/weather/weatherprovider.js b/modules/default/weather/weatherprovider.js index c03466ac74..66883a77e2 100644 --- a/modules/default/weather/weatherprovider.js +++ b/modules/default/weather/weatherprovider.js @@ -153,7 +153,7 @@ WeatherProvider.register = function (providerIdentifier, providerDetails) { WeatherProvider.initialize = function (providerIdentifier, delegate) { const pi = providerIdentifier.toLowerCase(); - let provider = new WeatherProvider.providers[pi](); + const provider = new WeatherProvider.providers[pi](); const config = Object.assign({}, provider.defaults, delegate.config); provider.delegate = delegate; @@ -165,7 +165,7 @@ WeatherProvider.initialize = function (providerIdentifier, delegate) { } if (config.allowOverrideNotification) { - provider = new LocalWrapper(provider); + return new LocalWrapper(provider); } return provider;