mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +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
|
// Exists. Read GUIDs
|
||||||
ReadGuidFile(guidFilePath);
|
ReadGuidFile(guidFilePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Room.RoomOccupancy != null)
|
||||||
|
{
|
||||||
|
if (Room.OccupancyStatusProviderIsRemote)
|
||||||
|
SetUpRemoteOccupancy();
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetUpLocalOccupancy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateSymbolAndBasicSigs(IpId);
|
CreateSymbolAndBasicSigs(IpId);
|
||||||
SetUpSources();
|
|
||||||
SetUpCommunitcationMonitors();
|
|
||||||
SetUpDisplay();
|
|
||||||
SetUpError();
|
|
||||||
ExecuteCustomSteps();
|
|
||||||
|
|
||||||
if (Room.RoomOccupancy != null)
|
|
||||||
{
|
|
||||||
if (Room.OccupancyStatusProviderIsRemote)
|
|
||||||
SetUpRemoteOccupancy();
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetUpLocalOccupancy();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
AddPostActivationAction(() =>
|
AddPostActivationAction(() =>
|
||||||
{
|
{
|
||||||
@@ -192,17 +187,6 @@ namespace PepperDash.Essentials.Core.Fusion
|
|||||||
SetUpError();
|
SetUpError();
|
||||||
ExecuteCustomSteps();
|
ExecuteCustomSteps();
|
||||||
|
|
||||||
if (Room.RoomOccupancy == null)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (Room.OccupancyStatusProviderIsRemote)
|
|
||||||
SetUpRemoteOccupancy();
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetUpLocalOccupancy();
|
|
||||||
}
|
|
||||||
|
|
||||||
FusionRVI.GenerateFileForAllFusionDevices();
|
FusionRVI.GenerateFileForAllFusionDevices();
|
||||||
|
|
||||||
GenerateGuidFile(guidFilePath);
|
GenerateGuidFile(guidFilePath);
|
||||||
|
|||||||
Reference in New Issue
Block a user