UI-002: align context and activation status

This commit is contained in:
2026-06-14 15:28:52 +02:00
parent ede6b87dbd
commit 100f5af578
6 changed files with 42 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ from pathlib import Path
from app.actuators.lifecycle import ActuatorReconciliationService
from app.actuators.models import (
AssignmentSource,
LifecycleStatus,
ManualOverride,
model_id_for_actuator,
@@ -233,6 +234,9 @@ def test_reconciliation_does_not_cross_assign_other_room_light_energy(
assert record.assignment.selected_context_entity_ids == [
"binary_sensor.abstellraum_ture"
]
assert record.assignment.source is AssignmentSource.AUTOMATIC
assert record.assignment.confidence == 1.0
assert record.assignment.review_required is False
assert record.lifecycle.status is LifecycleStatus.ARCHIVED

View File

@@ -14,5 +14,8 @@ def test_dashboard_is_served_at_root() -> None:
assert "Wie gewohnt bedienen" in response.text
assert "Ohne deine spätere Freigabe wird nichts geschaltet" in response.text
assert "Du wählst keine Sensoren und erstellst keine Regeln" in response.text
assert "Freigabe noch gesperrt" in response.text
assert "Bediene das Licht dafür direkt über Home Assistant" in response.text
assert 'record.behavior.status === "trained" && missingUserActions === 0' in response.text
assert "Automation-Entwurf" not in response.text
assert "Manuelle Overrides" not in response.text