mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 03:57:27 +00:00
move most init actions to PostActivationAction
This commit is contained in:
parent
fda888b095
commit
7c4222a598
1 changed files with 23 additions and 3 deletions
|
|
@ -184,10 +184,30 @@ namespace PepperDash.Essentials.Core.Fusion
|
|||
}
|
||||
}
|
||||
|
||||
// Make it so!
|
||||
FusionRVI.GenerateFileForAllFusionDevices();
|
||||
AddPostActivationAction(() =>
|
||||
{
|
||||
SetUpSources();
|
||||
SetUpCommunitcationMonitors();
|
||||
SetUpDisplay();
|
||||
SetUpError();
|
||||
ExecuteCustomSteps();
|
||||
|
||||
if (Room.RoomOccupancy == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (Room.OccupancyStatusProviderIsRemote)
|
||||
SetUpRemoteOccupancy();
|
||||
else
|
||||
{
|
||||
SetUpLocalOccupancy();
|
||||
}
|
||||
|
||||
FusionRVI.GenerateFileForAllFusionDevices();
|
||||
|
||||
GenerateGuidFile(guidFilePath);
|
||||
});
|
||||
|
||||
GenerateGuidFile(guidFilePath);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue