fix: logging & ternary changes

This commit is contained in:
Andrew Welker
2025-10-30 16:07:26 -05:00
parent b02e952765
commit bfc9b7e7fa
3 changed files with 2 additions and 11 deletions

View File

@@ -118,15 +118,6 @@ namespace PepperDash.Essentials.Core.UI
/// <param name="roomKey">Room Key for this panel</param>
protected abstract void SetupPanelDrivers(string roomKey);
/// <inheritdoc />
public override void Initialize()
{
base.Initialize();
}
/// <summary>
/// Event handler for System Extender Events
/// </summary>

View File

@@ -37,7 +37,7 @@ namespace PepperDash.Essentials.Touchpanel
{
var theme = content.ToObject<MobileControlSimpleContent<string>>();
this.LogInformation("Setting theme to {theme}", this, theme.Value);
this.LogInformation("Setting theme to {theme}", theme.Value);
_tpDevice.UpdateTheme(theme.Value);
PostStatusMessage(JToken.FromObject(new { theme = theme.Value }), id);

View File

@@ -112,7 +112,7 @@ namespace PepperDash.Essentials.WebSocketServer
{
clientId = Id,
roomKey = RoomKey,
touchpanelKey = string.IsNullOrEmpty(TouchpanelKey) ? string.Empty : TouchpanelKey,
touchpanelKey = TouchpanelKey ?? string.Empty,
})
};