Skip to content

Commit a106b7c

Browse files
mlitreandistorm
andcommitted
Apply suggestions from code review
Co-authored-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de> Signed-off-by: Martin Litre <mnlitre@gmail.com>
1 parent 77b1832 commit a106b7c

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

modules/EnergyManagement/EEBUS/manifest.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ config:
99
type: integer
1010
default: 4715
1111
grpc_port:
12-
description: Port for grpc control service connection. This is the port on which we will create our control service channel and start the grpc binary with.
12+
description: Port for grpc control service connection. This is the port on which we will create our control service channel and start the grpc binary with, required/used when manage_eebus_grpc_api_binary=true
1313
type: integer
1414
default: 50051
1515
eebus_ems_ski:
1616
description: EEBUS EMS SKI
1717
type: string
1818
required: true
1919
certificate_path:
20-
description: Path to the certificate file used by eebus go client. If relative will be prefixed with everest prefix + etc/everest/certs. Otherwise absolute file path is used.
20+
description: Path to the certificate file used by eebus go client. If relative will be prefixed with everest prefix + etc/everest/certs. Otherwise absolute file path is used, required/used when manage_eebus_grpc_api_binary=true
2121
type: string
2222
required: false
2323
default: eebus/evse_cert
2424
private_key_path:
25-
description: Path to the private key file used by eebus go client. If relative will be prefixed with everest prefix + etc/everest/certs. Otherwise absolute file path is used.
25+
description: Path to the private key file used by eebus go client. If relative will be prefixed with everest prefix + etc/everest/certs. Otherwise absolute file path is used, required/used when manage_eebus_grpc_api_binary=true
2626
type: string
2727
required: false
2828
default: eebus/evse_key
2929
eebus_grpc_api_binary_path:
30-
description: Path to the eebus grpc api binary. If relative will be prefixed with everest prefix + libexec. Otherwise absolute file path is used.
30+
description: Path to the eebus grpc api binary. If relative will be prefixed with everest prefix + libexec. Otherwise absolute file path is used, required/used when manage_eebus_grpc_api_binary=true
3131
type: string
3232
required: false
3333
default: eebus_grpc_api
@@ -47,11 +47,11 @@ config:
4747
description: Serial number for the configuration of the control service
4848
type: string
4949
required: true
50-
failsafe_control_limit:
50+
failsafe_control_limit_W:
5151
description: Failsafe control limit for LPC use case. This will also be used for the default consumption limit, unit is Watts
5252
type: integer
5353
default: 4200
54-
max_nominal_power:
54+
max_nominal_power_W:
5555
description: Maximum nominal power of the charging station. This is the max power the CS can consume.
5656
type: integer
5757
default: 32000

tests/eebus_tests/fixtures/grpc_testing_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ async def cs_lpc_control_server(cs_lpc_control_servicer):
4747
server = cs_lpc_control_server_module.CsLpcControlServer(cs_lpc_control_servicer)
4848
await server.start()
4949
yield server
50-
await server.stop()
50+
await server.stop()

tests/eebus_tests/grpc_server/control_service_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ async def start(self):
3838
await self._server.start()
3939

4040
async def stop(self):
41-
await self._server.stop(0)
41+
await self._server.stop(0)

tests/eebus_tests/grpc_server/cs_lpc_control_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ async def start(self):
3939
await self._server.start()
4040

4141
async def stop(self):
42-
await self._server.stop(0)
42+
await self._server.stop(0)

tests/eebus_tests/grpc_servicer/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ async def default_command_func(self, request, context, command):
2626
response = await asyncio.wait_for(self.command_queues[command].response_queue.get(), timeout=30)
2727
except asyncio.TimeoutError:
2828
raise asyncio.TimeoutError(f"{command} response queue is empty, not able to get response")
29-
return response
29+
return response

tests/eebus_tests/grpc_servicer/cs_lpc_control_servicer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ async def ConsumptionNominalMax(self, request, context):
8383
return await default_command_func(self, request, context, "ConsumptionNominalMax")
8484

8585
async def SetConsumptionNominalMax(self, request, context):
86-
return await default_command_func(self, request, context, "SetConsumptionNominalMax")
86+
return await default_command_func(self, request, context, "SetConsumptionNominalMax")

tests/eebus_tests/helpers/async_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ async def async_get(q: asyncio.Queue, timeout: float = None):
1010
try:
1111
return await asyncio.wait_for(q.get(), timeout=timeout)
1212
except asyncio.TimeoutError:
13-
raise TimeoutError(f"async_get timed out after {timeout} seconds")
13+
raise TimeoutError(f"async_get timed out after {timeout} seconds")

0 commit comments

Comments
 (0)