From 038b6765e7c3f7e8d365c92fef9775e2de3e3f0c Mon Sep 17 00:00:00 2001 From: eouia Date: Tue, 26 Apr 2022 14:52:05 +0200 Subject: [PATCH] Change property name clearly --- modules/default/weather/weather.js | 10 +++++----- modules/default/weather/weatherobject.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/default/weather/weather.js b/modules/default/weather/weather.js index d86384f8..8a8dc90c 100644 --- a/modules/default/weather/weather.js +++ b/modules/default/weather/weather.js @@ -156,11 +156,11 @@ Module.register("weather", { } let notificationPayload = { - current: this.weatherProvider?.currentWeatherObject?.simpleClone() ?? null, - forecast: this.weatherProvider?.weatherForecastArray?.map((ar) => ar.simpleClone()) ?? [], - hourly: this.weatherProvider?.weatherHourlyArray?.map((ar) => ar.simpleClone()) ?? [], - location: this.weatherProvider?.fetchedLocationName, - provider: this.weatherProvider.providerName + currentWeather: this.weatherProvider?.currentWeatherObject?.simpleClone() ?? null, + forecastArray: this.weatherProvider?.weatherForecastArray?.map((ar) => ar.simpleClone()) ?? [], + hourlyArray: this.weatherProvider?.weatherHourlyArray?.map((ar) => ar.simpleClone()) ?? [], + locationName: this.weatherProvider?.fetchedLocationName, + providerName: this.weatherProvider.providerName }; this.sendNotification("WEATHER_UPDATED", notificationPayload); }, diff --git a/modules/default/weather/weatherobject.js b/modules/default/weather/weatherobject.js index 9b5a21a9..0e57bfca 100755 --- a/modules/default/weather/weatherobject.js +++ b/modules/default/weather/weatherobject.js @@ -126,7 +126,7 @@ class WeatherObject { /** * Checks if the weatherObject is at dayTime. * - * @returns {boolean} true if it is at dayTime + * @return {boolean} true if it is at dayTime */ isDayTime() { return this.date.isBetween(this.sunrise, this.sunset, undefined, "[]");