You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 61b4947
Browse filesBrowse the repository at this point in the historyBrowse files
test(ohme): use charger_control_active in the #5443 dispatch-sensor tests
The tests main added in #5443 read OhmeAPI.control_active, which this branch
renamed to charger_control_active when control moved into the shared
CarChargerControl mixin. Only the attribute name changes; the assertions
are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
assertapi.control_activeisFalse, "Expected Predbat-led control ignored on Intelligent with the completed dispatches from Octopus"
2742
+
assertapi.charger_control_activeisFalse, "Expected Predbat-led control ignored on Intelligent with the completed dispatches from Octopus"
2743
2743
2744
2744
print("PASS: the Octopus dispatch sensor coming and going was followed")
2745
2745
return0
@@ -2773,7 +2773,7 @@ def start(control=False):
2773
2773
api=start(control=True)
2774
2774
_ohme_set_tariff(api, "E-1R-COSY-22-12-08-A")
2775
2775
_ohme_run_poll(api, seconds=120)
2776
-
assertapi.control_activeisTrueandapi.slot_modeisNone, f"Expected Predbat-led control with no slot wiring, got {api.control_active}{api.slot_mode}"
2776
+
assertapi.charger_control_activeisTrueandapi.slot_modeisNone, f"Expected Predbat-led control with no slot wiring, got {api.charger_control_active}{api.slot_mode}"
assertapi.control_activeisTrueandapi.slot_modeisNone, f"Expected Predbat-led control with no slot wiring, got {api.control_active}{api.slot_mode}"
2823
+
assertapi.charger_control_activeisTrueandapi.slot_modeisNone, f"Expected Predbat-led control with no slot wiring, got {api.charger_control_active}{api.slot_mode}"
0 commit comments