Skip to content

Commit 77988c8

Browse files
authored
Update test_charge_point.py
1 parent 3aae34c commit 77988c8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_charge_point.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
RegistrationStatus,
2424
RemoteStartStopStatus,
2525
ResetStatus,
26+
TriggerMessageStatus,
2627
UnlockStatus,
2728
)
2829

@@ -80,7 +81,7 @@ def on_get_configuration(self, key, **kwargs):
8081
"""Handle a get configuration requests."""
8182
if key[0] == ConfigurationKey.supported_feature_profiles.value:
8283
return call_result.GetConfigurationPayload(
83-
configuration_key=[{"key":key[0], "readonly": False, "value": "Core,FirmwareManagement,SmartCharging"}]
84+
configuration_key=[{"key":key[0], "readonly": False, "value": "Core,FirmwareManagement,RemoteTrigger,SmartCharging"}]
8485
)
8586
if key[0] == ConfigurationKey.heartbeat_interval.value:
8687
return call_result.GetConfigurationPayload(configuration_key=[{"key":key[0], "readonly": False, "value":"300"}])
@@ -131,6 +132,11 @@ def on_remote_start_transaction(self, **kwargs):
131132
def on_set_charging_profile(self, **kwargs):
132133
"""Handle set charging profile request."""
133134
return call_result.SetChargingProfilePayload(ChargingProfileStatus.accepted)
135+
136+
@on(Action.TriggerMessage)
137+
def on_trigger_message(self, **kwargs):
138+
"""Handle set charging profile request."""
139+
return call_result.TriggerMessagePayload(TriggerMessageStatus.accepted)
134140

135141
async def send_boot_notification(self):
136142
"""Send a boot notification."""

0 commit comments

Comments
 (0)