DrozmotiX / ioBroker.coronavirus-statistics

Adapter to show Global Corona Virus information and current reports
MIT License
18 stars 19 forks source link

Issue with Federal states of Germany #22

Closed KLVN closed 4 years ago

KLVN commented 4 years ago

Describe the bug
If Federal states are enabled, the log will be spammed with

coronavirus-statistics.0 | 2020-03-24 19:09:57.649 | warn | (2047) State attribute definition missing for + deathsPerOneMillion
coronavirus-statistics.0 | 2020-03-24 19:09:57.503 | warn | (2047) State attribute definition missing for + deathsPerOneMillion
coronavirus-statistics.0 | 2020-03-24 19:09:57.314 | warn | (2047) State attribute definition missing for + deathsPerOneMillion
coronavirus-statistics.0 | 2020-03-24 19:09:57.125 | warn | (2047) State attribute definition missing for + deathsPerOneMillion
coronavirus-statistics.0 | 2020-03-24 19:09:56.997 | warn | (2047) State attribute definition missing for + deathsPerOneMillion
coronavirus-statistics.0 | 2020-03-24 19:09:56.895 | warn | (2047) State attribute definition missing for + deathsPerOneMillion

To Reproduce
Steps to reproduce the behavior:

  1. Enable "Federal states" (and "Get every federal state", not sure if this is the English translation, I use ioBroker in German language)
  2. Stop, Start, Reload Corona-Adapter
  3. Open log

Expected behavior
No warnings in the log file :D

Screenshots & Logfiles
see above.

Versions:

Additional context
Looks like this line is involved: https://github.com/iobroker-community-adapters/ioBroker.coronavirus-statistics/blob/147324ecba3f7ac85b34ec84c5f9872afc56dc12/main.js#L258

DutchmanNL commented 4 years ago

Solved => 0.4.2

https://github.com/iobroker-community-adapters/ioBroker.coronavirus-statistics/commit/cb215331d6c350b2fd28f89f6503376baf0368fd#diff-d2198de31774d1de3a1c750437280adcR32-R36