TKnpl / ioBroker.divera247

ioBroker adapter for the alerting service "Divera 24/7"
MIT License
8 stars 8 forks source link

Handle empty alarm list #22

Open EmTeedee opened 1 year ago

EmTeedee commented 1 year ago

Hi,

I am an unprivileged user, so as soon as alarms are closed, I don't see anything about them anymore. The adapter didn't set alarm to false as expected.

A sample return from the API in this case:

Received data from Divera-API: {"success":true,"data":{"items":[],"sorting":[]},"ucr":123456}

The pull request handles an empty items list and just sets the alarm state to false.