Skip to content

Commit 16bf11b

Browse files
llucaxCopilot
andauthored
Apply suggestions from code review for _client
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
1 parent d472f62 commit 16bf11b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/frequenz/client/microgrid/_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ async def list_sensors( # noqa: DOC502 (raises ApiClientError indirectly)
325325
Iterator whose elements are all the sensors in the local microgrid.
326326
327327
Raises:
328-
ApiClientError: If the are any errors communicating with the Microgrid API,
328+
ApiClientError: If there are any errors communicating with the Microgrid API,
329329
most likely a subclass of
330330
[GrpcError][frequenz.client.microgrid.GrpcError].
331331
"""
@@ -727,7 +727,7 @@ def receive_sensor_telemetry_stream(
727727
lambda: aiter(
728728
self.stub.ReceiveSensorTelemetryStream(
729729
Request(
730-
sensor_id=_get_sensor_id(sensor),
730+
sensor_id=sensor_id,
731731
filter=Request.SensorTelemetryStreamFilter(
732732
metrics=metrics_set
733733
),

0 commit comments

Comments
 (0)