iobroker-community-adapters / ioBroker.unifi-protect

Unifi Protect Adapter for ioBroker
MIT License
22 stars 9 forks source link

Potential fix for adapter restart loop #266

Closed tomatenforever closed 1 day ago

tomatenforever commented 1 week ago

Within the raised and catched exception the data object is set to null without returning false. However in a later code segment, properties within the data object are read causing an exception that makes the adapter stop. In case the issue persists I see a restart loop for my adapter instance.

mcm1957 commented 1 day ago

@tomatenforever Why did you close this PR?

tomatenforever commented 1 day ago

@mcm1957 I have mistakenly changed the file io-package.json inside this PR, which does not make sense for your repo. I changed the file in order to test the adapter in my local iobroker instance to verify whether the restart loop is gone.

mcm1957 commented 1 day ago

OK, but if you fix is working create a new PR with the code change.

tomatenforever commented 1 day ago

No worries, will do

mcm1957 commented 1 day ago

THANS for your support