mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
Move some activation steps to PostActivation
This commit is contained in:
parent
7c4222a598
commit
c7e6e0c250
1 changed files with 10 additions and 26 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue