private async Task SendLightSwitchCommand(LightSwitchClient lightSwitchClient, LightSwitchCommand lightSwitchCommand)
 {
     var sendCommandResult = await lightSwitchClient.SendCommandAsync(lightSwitchCommand);
     if (sendCommandResult.HasError)
         await Log.ReportErrorAsync(sendCommandResult.Message, CancellationToken);
 }