mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-31 13:25:00 +00:00
Move some activation steps to PostActivation
This commit is contained in:
@@ -165,24 +165,19 @@ namespace PepperDash.Essentials.Core.Fusion
|
||||
{
|
||||
// Exists. Read GUIDs
|
||||
ReadGuidFile(guidFilePath);
|
||||
}
|
||||
|
||||
if (Room.RoomOccupancy != null)
|
||||
{
|
||||
if (Room.OccupancyStatusProviderIsRemote)
|
||||
SetUpRemoteOccupancy();
|
||||
else
|
||||
{
|
||||
SetUpLocalOccupancy();
|
||||
}
|
||||
}
|
||||
|
||||
CreateSymbolAndBasicSigs(IpId);
|
||||
SetUpSources();
|
||||
SetUpCommunitcationMonitors();
|
||||
SetUpDisplay();
|
||||
SetUpError();
|
||||
ExecuteCustomSteps();
|
||||
|
||||
if (Room.RoomOccupancy != null)
|
||||
{
|
||||
if (Room.OccupancyStatusProviderIsRemote)
|
||||
SetUpRemoteOccupancy();
|
||||
else
|
||||
{
|
||||
SetUpLocalOccupancy();
|
||||
}
|
||||
}
|
||||
|
||||
AddPostActivationAction(() =>
|
||||
{
|
||||
@@ -192,17 +187,6 @@ namespace PepperDash.Essentials.Core.Fusion
|
||||
SetUpError();
|
||||
ExecuteCustomSteps();
|
||||
|
||||
if (Room.RoomOccupancy == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (Room.OccupancyStatusProviderIsRemote)
|
||||
SetUpRemoteOccupancy();
|
||||
else
|
||||
{
|
||||
SetUpLocalOccupancy();
|
||||
}
|
||||
|
||||
FusionRVI.GenerateFileForAllFusionDevices();
|
||||
|
||||
GenerateGuidFile(guidFilePath);
|
||||
|
||||
Reference in New Issue
Block a user