Load actuator suggestions asynchronously
This commit is contained in:
@@ -102,7 +102,7 @@ async def lifespan(app: FastAPI) -> AsyncIterator[None]:
|
||||
app = FastAPI(
|
||||
title="SillyHome Next API",
|
||||
description="Lokales Smart-Home-Intelligenzsystem für Home Assistant.",
|
||||
version="0.7.13",
|
||||
version="0.7.14",
|
||||
lifespan=lifespan,
|
||||
)
|
||||
app.state.settings = load_settings()
|
||||
|
||||
@@ -305,11 +305,8 @@ async function loadOverview() {
|
||||
status.innerHTML = `<p class="bad">${escapeHtml(error.message)}</p>`;
|
||||
chips.innerHTML = "";
|
||||
}
|
||||
await Promise.all([
|
||||
loadActuatorDiscovery(),
|
||||
loadActuatorSuggestions(),
|
||||
loadConfiguredActuators(),
|
||||
]);
|
||||
await Promise.all([loadActuatorDiscovery(), loadConfiguredActuators()]);
|
||||
void loadActuatorSuggestions();
|
||||
}
|
||||
|
||||
async function loadActuatorDiscovery() {
|
||||
|
||||
Reference in New Issue
Block a user