fix: address mobile board review
This commit is contained in:
1 parent
bc90faf5f2
commit
0d1dd02184
4 files changed
+24
-17
No files matched your search
@@ -88,10 +88,12 @@ const waitForHomeAssistantAsync = async (container: StartedTestContainer) => {
|
||||
try {
|
||||
const response = await fetch(url, {
|
||||
headers: { Authorization: `Bearer ${DEFAULT_API_KEY}` },
|
||||
signal: AbortSignal.timeout(500),
|
||||
});
|
||||
if (response.ok) return;
|
||||
} catch {
|
||||
// Home Assistant is still restarting.
|
||||
continue;
|
||||
}
|
||||
|
||||
await new Promise((resolve) => setTimeout(resolve, 500));
|
||||
|
||||
Reference in new issue
Block a user