refactor: Change CustomActivate and Initialize methods to protected access in multiple classes for better inheritance control

This commit is contained in:
Neil Dorin 2026-04-08 15:47:58 -06:00
parent e818c9ca03
commit daf9b4bda0
22 changed files with 99 additions and 82 deletions

View file

@ -182,7 +182,7 @@ namespace PepperDash.Essentials.Devices.Common.Shades
/// CustomActivate method
/// </summary>
/// <inheritdoc />
public override bool CustomActivate()
protected override bool CustomActivate()
{
//Create ISwitchedOutput objects based on props
switch (Mode)

View file

@ -45,7 +45,7 @@ public class RelayControlledShade : ShadeBase, IShadesOpenCloseStop
}
/// <inheritdoc />
public override bool CustomActivate()
protected override bool CustomActivate()
{
//Create ISwitchedOutput objects based on props
OpenRelay = GetSwitchedOutputFromDevice(Config.Relays.Open);

View file

@ -34,7 +34,7 @@ public class ShadeController : EssentialsDevice, IShades
}
/// <inheritdoc />
public override bool CustomActivate()
protected override bool CustomActivate()
{
foreach (var shadeConfig in Config.Shades)
{