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.
- ha_mcp/tools/smart_search/__init__.py +1 -2
- ha_mcp/tools/smart_search/_config.py +6 -6
- ha_mcp/tools/smart_search/_deep.py +266 -155
- ha_mcp/tools/smart_search/_fetch.py +27 -49
- ha_mcp/tools/smart_search/_graph.py +565 -0
- ha_mcp/tools/smart_search/_scenes.py +108 -101
- ha_mcp/tools/tools_addons.py +20 -7
- ha_mcp/tools/tools_search.py +14 -2
- {ha_mcp_dev-8.3.0.dev2425.dist-info → ha_mcp_dev-8.3.0.dev2429.dist-info}/METADATA +1 -1
- {ha_mcp_dev-8.3.0.dev2425.dist-info → ha_mcp_dev-8.3.0.dev2429.dist-info}/RECORD +14 -13
- {ha_mcp_dev-8.3.0.dev2425.dist-info → ha_mcp_dev-8.3.0.dev2429.dist-info}/WHEEL +0 -0
- {ha_mcp_dev-8.3.0.dev2425.dist-info → ha_mcp_dev-8.3.0.dev2429.dist-info}/entry_points.txt +0 -0
- {ha_mcp_dev-8.3.0.dev2425.dist-info → ha_mcp_dev-8.3.0.dev2429.dist-info}/licenses/LICENSE +0 -0
- {ha_mcp_dev-8.3.0.dev2425.dist-info → ha_mcp_dev-8.3.0.dev2429.dist-info}/top_level.txt +0 -0
|
@@ -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
|
-
#
|
|
14
|
-
|
|
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
|
-
#
|
|
19
|
-
#
|
|
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
|
-
#
|
|
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
|