Skip to content

Commit 648504e

Browse files
committed
Increase API wait timeout to 120s
Raise the wait_until timeout from 60s to 120s in yaml_generator.js to allow more time for Home Assistant time and API connection to become valid before proceeding. Updated two occurrences in the start/sleep refresh logic.
1 parent 1a604aa commit 648504e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/esphome_designer/frontend/js/io/adapters/yaml_generator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export class YamlGenerator {
278278
lines.push(" - wait_until:");
279279
lines.push(" condition:");
280280
lines.push(" lambda: 'return id(ha_time).now().is_valid() && api_is_connected();'");
281-
lines.push(" timeout: 60s");
281+
lines.push(" timeout: 120s");
282282
lines.push(" - delay: 5s");
283283

284284
const sStart = parseInt(payload.noRefreshStartHour ?? payload.sleepStartHour) || 0;
@@ -333,7 +333,7 @@ export class YamlGenerator {
333333
lines.push(" - wait_until:");
334334
lines.push(" condition:");
335335
lines.push(" lambda: 'return id(ha_time).now().is_valid() && api_is_connected();'");
336-
lines.push(" timeout: 60s");
336+
lines.push(" timeout: 120s");
337337
lines.push(" - delay: 5s");
338338

339339
// Logic for Sleep & Refresh

0 commit comments

Comments
 (0)