iobroker-community-adapters / ioBroker.pvforecast

Forecast for your photovoltaic plant in ioBroker
Other
26 stars 14 forks source link

TypeError: Cannot read properties of undefined (reading 'filter') #107

Closed iobroker-sentry-github-app[bot] closed 2 weeks ago

iobroker-sentry-github-app[bot] commented 1 year ago

Sentry Issue: IOBROKER-PVFORECAST-7

TypeError: Cannot read properties of undefined (reading 'filter')
  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)