Fix missing constants and test import names

- Add SUBPROCESS_TIMEOUT_SHORT to bluetooth constants
- Fix test imports to use correct constant names

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-21 15:44:53 +00:00
parent 54db023520
commit 28d15d0ed5
3 changed files with 9 additions and 7 deletions

View File

@@ -7,9 +7,8 @@ from unittest.mock import MagicMock, patch
from utils.bluetooth.aggregator import DeviceAggregator
from utils.bluetooth.models import BTObservation, BTDeviceAggregate
from utils.bluetooth.constants import (
RSSI_RANGE_BANDS,
MAX_RSSI_SAMPLES,
DEVICE_STALE_SECONDS,
DEVICE_STALE_TIMEOUT as DEVICE_STALE_SECONDS,
)

View File

@@ -7,11 +7,11 @@ from unittest.mock import MagicMock
from utils.bluetooth.heuristics import HeuristicsEngine
from utils.bluetooth.models import BTDeviceAggregate
from utils.bluetooth.constants import (
HEURISTIC_PERSISTENT_MIN_SEEN,
HEURISTIC_PERSISTENT_WINDOW_SECONDS,
HEURISTIC_BEACON_VARIANCE_THRESHOLD,
HEURISTIC_STRONG_STABLE_RSSI,
HEURISTIC_STRONG_STABLE_VARIANCE,
PERSISTENT_MIN_SEEN_COUNT as HEURISTIC_PERSISTENT_MIN_SEEN,
PERSISTENT_WINDOW_SECONDS as HEURISTIC_PERSISTENT_WINDOW_SECONDS,
BEACON_INTERVAL_MAX_VARIANCE as HEURISTIC_BEACON_VARIANCE_THRESHOLD,
STRONG_RSSI_THRESHOLD as HEURISTIC_STRONG_STABLE_RSSI,
STABLE_VARIANCE_THRESHOLD as HEURISTIC_STRONG_STABLE_VARIANCE,
)

View File

@@ -89,6 +89,9 @@ BLUETOOTHCTL_TIMEOUT = 10.0
# btmgmt command timeout
BTMGMT_TIMEOUT = 10.0
# Generic subprocess timeout (short operations)
SUBPROCESS_TIMEOUT_SHORT = 5.0
# =============================================================================
# ADDRESS TYPE CLASSIFICATIONS
# =============================================================================