ha-mcp-dev 8.3.0.dev2425__py3-none-any.whl → 8.3.0.dev2429__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,9 +20,8 @@ from ...utils.fuzzy_search import create_fuzzy_searcher
20
20
  # keep resolving.
21
21
  from ._config import (
22
22
  AUTOMATION_CONFIG_TIME_BUDGET,
23
- BULK_REST_TIMEOUT,
24
- BULK_WEBSOCKET_TIMEOUT,
25
23
  DEFAULT_CONCURRENCY_LIMIT,
24
+ ENTITY_REGISTRY_TIMEOUT,
26
25
  INDIVIDUAL_CONFIG_TIMEOUT,
27
26
  INDIVIDUAL_FETCH_BATCH_SIZE,
28
27
  SCENE_CONFIG_TIME_BUDGET,
@@ -10,13 +10,13 @@ from ha_mcp.config import get_global_settings
10
10
  # Default concurrency limit for parallel operations
11
11
  DEFAULT_CONCURRENCY_LIMIT = 20
12
12
 
13
- # Bulk fetch timeouts (in seconds)
14
- BULK_REST_TIMEOUT = 5.0 # Timeout for bulk REST endpoint calls
15
- BULK_WEBSOCKET_TIMEOUT = 3.0 # Timeout for bulk WebSocket calls
13
+ # Timeout for the entity-registry WebSocket list used by the scene walk.
14
+ ENTITY_REGISTRY_TIMEOUT = 3.0
16
15
 
17
16
 
18
- # Attempt-C (per-id fallback; the letter predates the removal of the phantom
19
- # WS bulk tier in #1889 and is kept as a proper name) tuning knobs. Sourced from the resolved
17
+ # Per-id config-fetch tuning knobs. The code calls this pass "Attempt C":
18
+ # a proper name left from when two earlier bulk tiers were tried first,
19
+ # both since removed as phantoms (#1889, #2258). It is now the only pass. Sourced from the resolved
20
20
  # Settings (issues #1538 / #1784) so the env var, the web Settings UI
21
21
  # override file, and the field defaults all flow through one precedence path
22
22
  # — and so add-on users (who cannot set raw env vars) can tune them from the
@@ -25,7 +25,7 @@ BULK_WEBSOCKET_TIMEOUT = 3.0 # Timeout for bulk WebSocket calls
25
25
  # carry a restart-required notice in the UI).
26
26
  _settings = get_global_settings()
27
27
 
28
- # Time budgets for fallback individual fetching (in seconds).
28
+ # Wall-clock budgets for the per-id config fetch (in seconds).
29
29
  AUTOMATION_CONFIG_TIME_BUDGET = _settings.automation_config_time_budget
30
30
  SCRIPT_CONFIG_TIME_BUDGET = _settings.script_config_time_budget
31
31
  SCENE_CONFIG_TIME_BUDGET = _settings.scene_config_time_budget