Add relay enable toggles to WebUI

This commit is contained in:
2026-07-02 23:50:19 -06:00
parent 2e4fb4ad6c
commit 563434a0a1
4 changed files with 57 additions and 11 deletions
+3
View File
@@ -248,6 +248,8 @@ def test_relay_set_contract_fixtures_and_firmware_errors():
source = firmware_source()
assert '"invalid_json"' in source
assert '"unknown_relay"' in source
assert "relay_disabled" in source
assert "relayIsEnabled" in source
def test_relay_api_is_output_count_agnostic():
@@ -259,6 +261,7 @@ def test_relay_api_is_output_count_agnostic():
assert 'relay["hardware_channel"] = appConfig.relays[i].hardwareChannel;' in source
assert 'relay["available"] = appConfig.relays[i].available;' in source
assert 'relays.state[index] = enabled;' in source
assert '!appConfig.relays[index].enabled' in source
assert 'relays.relay1' not in source
assert 'relays.relay2' not in source