Added missing RegisterCrestronGenericBase() call into GlsPartitionSensorController

resolves #292
This commit is contained in:
Trevor Payne
2020-07-01 17:10:47 -05:00
parent 0d802bdeed
commit 6a3d11dee1
2 changed files with 6 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ namespace PepperDash.Essentials.Core
{ {
public CenRfgwControllerFactory() public CenRfgwControllerFactory()
{ {
TypeNames = new List<string>() {"cenrfgwex", "cenerfgwpoe"}; TypeNames = new List<string> {"cenrfgwex", "cenerfgwpoe"};
} }
public override EssentialsDevice BuildDevice(DeviceConfig dc) public override EssentialsDevice BuildDevice(DeviceConfig dc)
@@ -187,9 +187,11 @@ namespace PepperDash.Essentials.Core
return null; return null;
} }
} }
}
#endregion #endregion
}
} }

View File

@@ -49,6 +49,8 @@ namespace PepperDash.Essentials.Core
{ {
_partitionSensor = preActivationFunc(config); _partitionSensor = preActivationFunc(config);
RegisterCrestronGenericBase(_partitionSensor);
NameFeedback = new StringFeedback(() => Name); NameFeedback = new StringFeedback(() => Name);
EnableFeedback = new BoolFeedback(() => _partitionSensor.EnableFeedback.BoolValue); EnableFeedback = new BoolFeedback(() => _partitionSensor.EnableFeedback.BoolValue);
PartitionSensedFeedback = new BoolFeedback(() => _partitionSensor.PartitionSensedFeedback.BoolValue); PartitionSensedFeedback = new BoolFeedback(() => _partitionSensor.PartitionSensedFeedback.BoolValue);