From 71a950b04a1f192449194281c19e424441ffb97b Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Wed, 24 Jun 2020 15:28:31 -0600 Subject: [PATCH] some refactoring and formatting --- .../Room/Types/EssentialsDualDisplayRoom.cs | 2 -- .../Room/Types/EssentialsNDisplayRoomBase.cs | 14 ++------------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/PepperDashEssentials/Room/Types/EssentialsDualDisplayRoom.cs b/PepperDashEssentials/Room/Types/EssentialsDualDisplayRoom.cs index c66959ea..a267c30a 100644 --- a/PepperDashEssentials/Room/Types/EssentialsDualDisplayRoom.cs +++ b/PepperDashEssentials/Room/Types/EssentialsDualDisplayRoom.cs @@ -633,9 +633,7 @@ namespace PepperDash.Essentials var allRooms = DeviceManager.AllDevices.OfType().Where(d => !d.ExcludeFromGlobalFunctions); foreach (var room in allRooms) { - room.RunRouteAction("roomOff", room.SourceListKey); - } } diff --git a/PepperDashEssentials/Room/Types/EssentialsNDisplayRoomBase.cs b/PepperDashEssentials/Room/Types/EssentialsNDisplayRoomBase.cs index 85f52c9f..17e764e9 100644 --- a/PepperDashEssentials/Room/Types/EssentialsNDisplayRoomBase.cs +++ b/PepperDashEssentials/Room/Types/EssentialsNDisplayRoomBase.cs @@ -1,16 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Crestron.SimplSharp; - -using Newtonsoft.Json; - -using PepperDash.Core; +using System.Collections.Generic; using PepperDash.Essentials.Core; -using PepperDash.Essentials.Core.Devices; using PepperDash.Essentials.Core.Config; -using PepperDash.Essentials.Room.Config; namespace PepperDash.Essentials { @@ -23,7 +13,7 @@ namespace PepperDash.Essentials public Dictionary Displays { get; protected set;} - public EssentialsNDisplayRoomBase(DeviceConfig config) + protected EssentialsNDisplayRoomBase(DeviceConfig config) : base (config) { Displays = new Dictionary();