From 222c2f6fe26aaacbb0113b33d287daf5ed341896 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Tue, 25 Mar 2025 22:52:32 -0500 Subject: [PATCH] chore: more miscellaneous cleanup --- .../Lighting/LightingBase.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/PepperDash.Essentials.Devices.Common/Lighting/LightingBase.cs b/src/PepperDash.Essentials.Devices.Common/Lighting/LightingBase.cs index 1c67d426..6e1dc506 100644 --- a/src/PepperDash.Essentials.Devices.Common/Lighting/LightingBase.cs +++ b/src/PepperDash.Essentials.Devices.Common/Lighting/LightingBase.cs @@ -16,7 +16,6 @@ using Serilog.Events; namespace PepperDash.Essentials.Devices.Common.Lighting { - [Obsolete("Please use PepperDash.Essentials.Devices.Common, this will be removed in 2.1")] public abstract class LightingBase : EssentialsBridgeableDevice, ILightingScenes { #region ILightingScenes Members @@ -68,12 +67,7 @@ namespace PepperDash.Essentials.Devices.Common.Lighting else scene.IsActive = false; } - - var handler = LightingSceneChange; - if (handler != null) - { - handler(this, new LightingSceneChangeEventArgs(CurrentLightingScene)); - } + LightingSceneChange?.Invoke(this, new LightingSceneChangeEventArgs(CurrentLightingScene)); } protected GenericLightingJoinMap LinkLightingToApi(LightingBase lightingDevice, BasicTriList trilist, uint joinStart,