Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/PepperDash.Essentials/ControlSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,13 @@ public void LoadRooms()
{
var room = Core.DeviceFactory.GetDevice(roomConfig);

DeviceManager.AddDevice(room);
if (room is ICustomMobileControl)
if(room == null)
{
Debug.LogWarning("ERROR: Cannot load unknown room type '{roomType:l}', key '{roomKey:l}'.", roomConfig.Type, roomConfig.Key);
Comment thread
andrew-welker marked this conversation as resolved.
continue;
}

DeviceManager.AddDevice(room);
} catch (Exception ex)
{
Debug.LogMessage(ex, "Exception loading room {roomKey}:{roomType}", null, roomConfig.Key, roomConfig.Type);
Expand Down