Skip to content

Commit 6e2aad3

Browse files
authored
Some very small fixes (#590)
- Resampling: Reuse existing variable. - PvPowerFormula: Fix comment typo
2 parents 93110d1 + 0401ede commit 6e2aad3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/frequenz/sdk/actor/_resampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async def _subscribe(self, request: ComponentMetricRequest) -> None:
7979

8080
# This is a temporary hack until the Sender implementation uses
8181
# exceptions to report errors.
82-
sender = self._channel_registry.new_sender(request.get_channel_name())
82+
sender = self._channel_registry.new_sender(request_channel_name)
8383

8484
async def sink_adapter(sample: Sample[Quantity]) -> None:
8585
await sender.send(sample)

src/frequenz/sdk/timeseries/_formula_engine/_formula_generators/_pv_power_formula.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def generate(self) -> FormulaEngine[Power]:
4040
"Subscribing to the resampling actor with a non-existing "
4141
"component id, so that `0` values are sent from the formula."
4242
)
43-
# If there are no PV inverters, we have to send 0 values as the same
43+
# If there are no PV inverters, we have to send 0 values at the same
4444
# frequency as the other streams. So we subscribe with a non-existing
4545
# component id, just to get a `None` message at the resampling interval.
4646
builder.push_component_metric(

0 commit comments

Comments
 (0)