Skip to content

Commit

Permalink
Adjust validActorTypes for MaMpc UseCase
Browse files Browse the repository at this point in the history
The actor in this use case should be a MonitoringAppliance, but it
should connect to actors of type MonitoredUnit.
  • Loading branch information
sthelen-enqs committed Aug 29, 2024
1 parent b64eb87 commit 9736aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usecases/ma/mpc/usecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type MPC struct {
var _ ucapi.MaMPCInterface = (*MPC)(nil)

func NewMPC(localEntity spineapi.EntityLocalInterface, eventCB api.EntityEventCallback) *MPC {
validActorTypes := []model.UseCaseActorType{model.UseCaseActorTypeMonitoringAppliance}
validActorTypes := []model.UseCaseActorType{model.UseCaseActorTypeMonitoredUnit}
validEntityTypes := []model.EntityTypeType{
model.EntityTypeTypeCompressor,
model.EntityTypeTypeElectricalImmersionHeater,
Expand Down

0 comments on commit 9736aaa

Please sign in to comment.