Skip to content

Commit b687f5e

Browse files
authored
Update test_charge_point.py
1 parent 85924d5 commit b687f5e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/test_charge_point.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,25 +71,25 @@ def __init__(self, id, connection, response_timeout=30):
7171
def on_get_configuration(self, key, **kwargs):
7272
"""Handle a get configuration requests."""
7373
if key == ConfigurationKey.supported_feature_profiles.value:
74-
return call_result.GetConfigurationPayload(
74+
return call.GetConfigurationPayload(
7575
configuration_key=["Core", "FirmwareManagement", "SmartCharging"]
7676
)
7777
if key == ConfigurationKey.heartbeat_interval.value:
78-
return call_result.GetConfigurationPayload(configuration_key="300")
78+
return call.GetConfigurationPayload(configuration_key="300")
7979
if key == ConfigurationKey.number_of_connectors.value:
80-
return call_result.GetConfigurationPayload(configuration_key="1")
80+
return call.GetConfigurationPayload(configuration_key="1")
8181
if key == ConfigurationKey.web_socket_ping_interval.value:
82-
return call_result.GetConfigurationPayload(configuration_key="60")
82+
return call.GetConfigurationPayload(configuration_key="60")
8383
if key == ConfigurationKey.meter_values_sampled_data.value:
84-
return call_result.GetConfigurationPayload(
84+
return call.GetConfigurationPayload(
8585
configuration_key="Energy.Reactive.Import.Register"
8686
)
8787
if key == ConfigurationKey.meter_value_sample_interval.value:
88-
return call_result.GetConfigurationPayload(configuration_key="60")
88+
return call.GetConfigurationPayload(configuration_key="60")
8989
if key == ConfigurationKey.charging_schedule_allowed_charging_rate_unit.value:
90-
return call_result.GetConfigurationPayload(configuration_key="Current")
90+
return call.GetConfigurationPayload(configuration_key="Current")
9191
if key == ConfigurationKey.authorize_remote_tx_requests.value:
92-
return call_result.GetConfigurationPayload(configuration_key="false")
92+
return call.GetConfigurationPayload(configuration_key="false")
9393

9494
@on(Action.ChangeConfiguration)
9595
def on_change_configuration(self, **kwargs):

0 commit comments

Comments
 (0)