I need to terminate apps. In AppDaemon 4.0.3 I used
exit() which worked fine. In AppDaemon 4.0.4
exit() terminates the entire AppDaemon with all apps.
I could use self.stop_app(self.name) but it does not stop the app immediately (that means the code in the following lines of the function is still executed).
A workaround is to leave all functions manually. But this would require many additional code lines for condition checking.
What is the best way to exit an app? Or is there a way to get the old behavior of 4.0.3 with in the new 4.0.4?