iobroker-community-adapters / ioBroker.pvforecast

Forecast for your photovoltaic plant in ioBroker
Other
24 stars 13 forks source link

TypeError: Cannot read property 'filter' of undefined #109

Open iobroker-sentry-github-app[bot] opened 11 months ago

iobroker-sentry-github-app[bot] commented 11 months ago

Sentry Issue: IOBROKER-PVFORECAST-1

TypeError: Cannot read property 'filter' of undefined
  File "/opt/iobroker/node_modules/iobroker.pvforecast/main.js", line 782, in <anonymous>
    .filter(e => e.dayOfMonth == dayOfMonth && e.time === hourKey && e.type == type)
  File "/opt/iobroker/node_modules/iobroker.pvforecast/main.js", line 20, in asyncForEach
    await callback(array[index], index, array);
  File "/opt/iobroker/node_modules/iobroker.pvforecast/main.js", line 779, in <anonymous>
    await asyncForEach(plantArray, async (plant) => {
  File "/opt/iobroker/node_modules/iobroker.pvforecast/main.js", line 20, in asyncForEach
    await callback(array[index], index, array);
  File "/opt/iobroker/node_modules/iobroker.pvforecast/main.js", line 776, in Pvforecast.saveEveryHourSummary
    await asyncForEach(validHourKeys, async (hourKey) => {
...
(1 additional frame(s) were not displayed)