Trigger Home Assistant shutdown automations right before the stop event instead of during it (#91165)
Co-authored-by: Erik <erik@montnemery.com>
This commit is contained in:
parent
44810f9772
commit
636e38f4b3
6 changed files with 164 additions and 49 deletions
|
@ -59,9 +59,10 @@ WORKDIR /config
|
|||
|
||||
def _generate_dockerfile() -> str:
|
||||
timeout = (
|
||||
core.STAGE_1_SHUTDOWN_TIMEOUT
|
||||
+ core.STAGE_2_SHUTDOWN_TIMEOUT
|
||||
+ core.STAGE_3_SHUTDOWN_TIMEOUT
|
||||
core.STOPPING_STAGE_SHUTDOWN_TIMEOUT
|
||||
+ core.STOP_STAGE_SHUTDOWN_TIMEOUT
|
||||
+ core.FINAL_WRITE_STAGE_SHUTDOWN_TIMEOUT
|
||||
+ core.CLOSE_STAGE_SHUTDOWN_TIMEOUT
|
||||
+ executor.EXECUTOR_SHUTDOWN_TIMEOUT
|
||||
+ thread.THREADING_SHUTDOWN_TIMEOUT
|
||||
+ 10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue