Skip to content

Commit

Permalink
fix: if a zone is off, it should be in normal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mewejo committed Feb 7, 2023
1 parent eac078f commit a002ee2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/app/manage_zones.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func (app *App) ensureZoneWaterOutletState(zone *model.Zone) {

func (app *App) preventZoneFlooding(zone *model.Zone) {
if !zone.WaterOutletsState {
zone.Mode = model.GetDefaultZoneMode()
return
}

Expand Down

0 comments on commit a002ee2

Please sign in to comment.