Skip to content

Commit

Permalink
Fix LoadControlLimits in OPEV and OSCEV not filtering for unit (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndereAndi authored Nov 20, 2024
2 parents cec3695 + 8641db6 commit 8366d85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions usecases/cem/opev/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func (e *OPEV) LoadControlLimits(entity spineapi.EntityRemoteInterface) (
filter := model.LoadControlLimitDescriptionDataType{
LimitType: util.Ptr(model.LoadControlLimitTypeTypeMaxValueLimit),
LimitCategory: util.Ptr(model.LoadControlCategoryTypeObligation),
Unit: util.Ptr(model.UnitOfMeasurementTypeA),
ScopeType: util.Ptr(model.ScopeTypeTypeOverloadProtection),
}
return internal.LoadControlLimits(e.LocalEntity, entity, filter)
Expand Down
1 change: 1 addition & 0 deletions usecases/cem/oscev/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (e *OSCEV) LoadControlLimits(entity spineapi.EntityRemoteInterface) (
filter := model.LoadControlLimitDescriptionDataType{
LimitType: util.Ptr(model.LoadControlLimitTypeTypeMaxValueLimit),
LimitCategory: util.Ptr(model.LoadControlCategoryTypeRecommendation),
Unit: util.Ptr(model.UnitOfMeasurementTypeA),
ScopeType: util.Ptr(model.ScopeTypeTypeSelfConsumption),
}
return internal.LoadControlLimits(e.LocalEntity, entity, filter)
Expand Down

0 comments on commit 8366d85

Please sign in to comment.