Skip to content

Commit ea47b29

Browse files
Add COMPONENT_STATE_DISCHARGING to valid inverter states
DISCHARGING state was missing by mistake and this caused the power distributor to error out if the inverter is already discharging. Signed-off-by: ela-kotulska-frequenz <[email protected]>
1 parent b302f71 commit ea47b29

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@
1818

1919
## Bug Fixes
2020

21+
* Add COMPONENT_STATE_DISCHARGING as valid state for the inverter. DISCHARGING state was missing by mistake and this caused the power distributor to error out if the inverter is already discharging.
2122
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->

src/frequenz/sdk/actor/power_distributing/_battery_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class BatteryStatusTracker:
147147
InverterComponentState.COMPONENT_STATE_STANDBY,
148148
InverterComponentState.COMPONENT_STATE_IDLE,
149149
InverterComponentState.COMPONENT_STATE_CHARGING,
150-
InverterComponentState.COMPONENT_STATE_STANDBY,
150+
InverterComponentState.COMPONENT_STATE_DISCHARGING,
151151
}
152152

153153
def __init__( # pylint: disable=too-many-arguments

0 commit comments

Comments
 (0)