Commit 893fe1c
committed
Simplify working batteries check
The _get_working_batteries method had unnecessary complexity
and was redundant as it was returning the original set of batteries
if there was any working battery.
Therefore, this commit removes the _get_working_batteries method and
simplifies the check for working batteries.
Signed-off-by: Daniel Zullo <[email protected]>1 parent ebeef67 commit 893fe1c
File tree
1 file changed
+3
-19
lines changed- src/frequenz/sdk/actor/power_distributing
1 file changed
+3
-19
lines changedLines changed: 3 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | 540 | | |
559 | 541 | | |
560 | 542 | | |
| |||
568 | 550 | | |
569 | 551 | | |
570 | 552 | | |
571 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
572 | 556 | | |
573 | 557 | | |
574 | 558 | | |
| |||
0 commit comments