Skip to content

Commit 6da36b0

Browse files
Fix references to EV charger in PV inverter modules and tests (#932)
There were references to *EV* charger within *PV* inverter modules and tests.
2 parents 58c02da + 8bda31c commit 6da36b0

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/frequenz/sdk/actor/power_distributing/_component_status/_pv_inverter_status_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ async def _run(self) -> None:
193193

194194
if new_status != self._last_status:
195195
_logger.info(
196-
"EV charger %s status changed from %s to %s",
196+
"PV inverter %s status changed from %s to %s",
197197
self._component_id,
198198
self._last_status,
199199
new_status,

src/frequenz/sdk/timeseries/pv_pool/_pv_pool.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,19 +130,19 @@ def component_ids(self) -> abc.Set[int]:
130130

131131
@property
132132
def power(self) -> FormulaEngine[Power]:
133-
"""Fetch the total power for the EV Chargers in the pool.
133+
"""Fetch the total power for the PV Inverters in the pool.
134134
135135
This formula produces values that are in the Passive Sign Convention (PSC).
136136
137-
If a formula engine to calculate EV Charger power is not already running, it
137+
If a formula engine to calculate PV Inverter power is not already running, it
138138
will be started.
139139
140140
A receiver from the formula engine can be created using the `new_receiver`
141141
method.
142142
143143
Returns:
144-
A FormulaEngine that will calculate and stream the total power of all EV
145-
Chargers.
144+
A FormulaEngine that will calculate and stream the total power of all PV
145+
Inverters.
146146
"""
147147
engine = self._pv_pool_ref.formula_pool.from_power_formula_generator(
148148
"pv_power",

src/frequenz/sdk/timeseries/pv_pool/_pv_pool_reference_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@ def __init__( # pylint: disable=too-many-arguments
9898
self.bounds_tracker.start()
9999

100100
async def stop(self) -> None:
101-
"""Stop all tasks and channels owned by the EVChargerPool."""
101+
"""Stop all tasks and channels owned by the PVInverterPool."""
102102
await self.formula_pool.stop()
103103
await self.bounds_tracker.stop()

tests/timeseries/_pv_pool/test_pv_pool_control_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async def mocks(mocker: MockerFixture) -> typing.AsyncIterator[_Mocks]:
4949
yield _Mocks(
5050
mockgrid,
5151
streamer,
52-
dp._ev_power_wrapper.status_channel.new_sender(),
52+
dp._pv_power_wrapper.status_channel.new_sender(),
5353
)
5454

5555

0 commit comments

Comments
 (0)