You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you shut down appdaemon or restart it, you have the ability to do a cleanup using the terminate() function in an app. But the order in which the shutdown steps are made are imho not correct. It shuts down the connection to HA first instead processing the therminate() steps. This leads to the situation that you cant set entities in HA as part of the cleanup.
Current:
INFO AppDaemon: SIGTERM Received
INFO AppDaemon: AppDaemon is shutting down
INFO HASS: Disconnecting from Home Assistant
...
INFO AppDaemon: Calling terminate() for my_app
WARNING HASS: Attempt to call Home Assistant while disconnected: set_plugin_state
Imho, the order should be the following:
INFO AppDaemon: SIGTERM Received
INFO AppDaemon: Calling terminate() for my_app
INFO AppDaemon: AppDaemon is shutting down
INFO HASS: Disconnecting from Home Assistant
...
Version
4.4.2
Installation type
Home Assistant add-on
Relevant log output
No response
Relevant code in the app or config file that caused the issue
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
What happened?
When you shut down appdaemon or restart it, you have the ability to do a cleanup using the
terminate()
function in an app. But the order in which the shutdown steps are made are imho not correct. It shuts down the connection to HA first instead processing the therminate() steps. This leads to the situation that you cant set entities in HA as part of the cleanup.Current:
Imho, the order should be the following:
Version
4.4.2
Installation type
Home Assistant add-on
Relevant log output
No response
Relevant code in the app or config file that caused the issue
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: