Skip to content

Commit cc44983

Browse files
Fix bug in BatteryStatus
Inverter that was discharging was considered as not working. If inverter was discharging, then it was impossible to set any other command until it changed state. Signed-off-by: ela-kotulska-frequenz <[email protected]>
1 parent 2b006cd commit cc44983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frequenz/sdk/microgrid/_battery/_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class StatusTracker:
6161
InverterComponentState.COMPONENT_STATE_STANDBY,
6262
InverterComponentState.COMPONENT_STATE_IDLE,
6363
InverterComponentState.COMPONENT_STATE_CHARGING,
64-
InverterComponentState.COMPONENT_STATE_STANDBY,
64+
InverterComponentState.COMPONENT_STATE_DISCHARGING,
6565
}
6666

6767
def __init__(

0 commit comments

Comments
 (0)