Core API check during startup can timeout (#4595)

* Core API check during startup can timeout

* Use a more specific exception so caller can differentiate
This commit is contained in:
Mike Degatano
2023-10-04 12:54:42 -04:00
committed by GitHub
parent d70aa5f9a9
commit 682b8e0535
3 changed files with 57 additions and 6 deletions

View File

@@ -67,6 +67,10 @@ class HomeAssistantCrashError(HomeAssistantError):
"""Error on crash of a Home Assistant startup."""
class HomeAssistantStartupTimeout(HomeAssistantCrashError):
"""Timeout waiting for Home Assistant successful startup."""
class HomeAssistantAPIError(HomeAssistantError):
"""Home Assistant API exception."""