Skip to content

Commit 0e47f15

Browse files
authored
Fix battery manager string representation (#989)
The separator for the ID was wrong and used a » for openining too, making it very confusing when nested in other classes, like `LatestValueCache`.
2 parents 479bb90 + 9e34c9d commit 0e47f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frequenz/sdk/actor/power_distributing/_component_managers/_battery_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ async def _distribute_power(
315315
async def _create_channels(self) -> None:
316316
"""Create channels to get data of components in microgrid."""
317317
api = connection_manager.get().api_client
318-
manager_id = f"{type(self).__name__}»{hex(id(self))}»"
318+
manager_id = f"{type(self).__name__}«{hex(id(self))}»"
319319
for battery_id, inverter_ids in self._bat_invs_map.items():
320320
bat_recv: Receiver[BatteryData] = await api.battery_data(battery_id)
321321
self._battery_caches[battery_id] = LatestValueCache(

0 commit comments

Comments
 (0)