Skip to content

Commit 5f5c540

Browse files
Bug fix: Print Power as str instead of decimal (#1232)
Commit 41d4543 changed `float` to `Power` in PowerDistributor's battery manager, but left %d in formatting.
2 parents e1ce323 + a01dd8f commit 5f5c540

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414

1515
## Bug Fixes
1616

17-
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
17+
* 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)