Skip to content

Commit 2ea9903

Browse files
Bug fix: Print Power as str instead of int
Commit 41d4543 changed `float` to `Power` in PowerDistributor's battery manager, but left %d in formatting. Signed-off-by: Elzbieta Kotulska <[email protected]>
1 parent b9bcd2d commit 2ea9903

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# Frequenz Python SDK Release Notes
22

3-
## New Features
4-
5-
- The SDK now officially support Python 3.13.
6-
73
## Bug Fixes
84

9-
- Fixed issue where actors would restart instead of stopping when exceptions occurred during cancellation. Actors now properly stop and surface the unhandled exception.
5+
* Fix TypeError raised by BatteryManager when distributing power

src/frequenz/sdk/microgrid/_power_distributing/_component_managers/_battery_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ async def _distribute_power(
273273
battery_distribution.get(battery_id, Power.zero()) + dist
274274
)
275275
_logger.debug(
276-
"Distributing power %d between the batteries %s",
276+
"Distributing power %s between the batteries %s",
277277
distributed_power_value,
278278
str(battery_distribution),
279279
)

0 commit comments

Comments
 (0)