From 9736aaa7d28b5f24b08524e0081e141ef6760975 Mon Sep 17 00:00:00 2001 From: Simon Thelen Date: Thu, 18 Jul 2024 10:26:10 +0200 Subject: [PATCH] Adjust validActorTypes for MaMpc UseCase The actor in this use case should be a MonitoringAppliance, but it should connect to actors of type MonitoredUnit. --- usecases/ma/mpc/usecase.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usecases/ma/mpc/usecase.go b/usecases/ma/mpc/usecase.go index 393b8a7b..69a420cf 100644 --- a/usecases/ma/mpc/usecase.go +++ b/usecases/ma/mpc/usecase.go @@ -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,